diff src/gtkutils.c @ 10061:83eb12b1f1a1

[gaim-migrate @ 11033] grim pointed out that the running_gnome thing caused a compile warning, this fixes it by moving running_gnome() from gtknotify.c and adding it to gtkutils.{c,h} as gaim_running_gnome() committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 23 Sep 2004 13:45:48 +0000
parents 0cb20555b3ab
children 53410b84336f
line wrap: on
line diff
--- a/src/gtkutils.c	Thu Sep 23 03:09:46 2004 +0000
+++ b/src/gtkutils.c	Thu Sep 23 13:45:48 2004 +0000
@@ -1227,7 +1227,7 @@
 			*y = *y - ythickness;
 		else
 			*y = *y + ythickness - requisition.height + 1;
-	  
+ 
 		*y = CLAMP (*y, monitor.y,
 			   monitor.y + monitor.height - requisition.height);
 	}
@@ -1270,3 +1270,15 @@
 	gaim_gtk_menu_position_func (menu, x, y, push_in, data);
 #endif
 }
+
+gboolean
+gaim_running_gnome(void)
+{
+	if ((g_getenv("GNOME_DESKTOP_SESSION_ID") != NULL) &&
+		(g_find_program_in_path("gnome-open") != NULL))
+	{
+		return TRUE;
+	}
+
+	return FALSE;
+}