gnome-control-center r8639 - trunk/capplets/accessibility/at-properties



Author: jensg
Date: Tue Apr  8 17:23:58 2008
New Revision: 8639
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=8639&view=rev

Log:
2008-04-08  Jens Granseuer  <jensgr gmx net>

	Based on a patch by: Matthias Clasen <mclasen redhat com>

	* main.c: (create_dialog): don't show the "accessible login" button if
	gdmsetup is not available (bug #526944)


Modified:
   trunk/capplets/accessibility/at-properties/ChangeLog
   trunk/capplets/accessibility/at-properties/main.c

Modified: trunk/capplets/accessibility/at-properties/main.c
==============================================================================
--- trunk/capplets/accessibility/at-properties/main.c	(original)
+++ trunk/capplets/accessibility/at-properties/main.c	Tue Apr  8 17:23:58 2008
@@ -21,6 +21,7 @@
 
 	if (dialog) {
 		GtkWidget *image;
+		gchar *prog;
 
 		image = gtk_image_new_from_stock (GTK_STOCK_QUIT, GTK_ICON_SIZE_BUTTON);
 		gtk_button_set_image (GTK_BUTTON (WID ("at_close_logout_button")), image);
@@ -42,6 +43,12 @@
 
 		gtk_image_set_from_file (GTK_IMAGE (WID ("at_applications_image")),
 					 PIXMAPDIR "/at-support.png");
+
+		prog = g_find_program_in_path ("gdmsetup");
+		if (prog == NULL)
+			gtk_widget_hide (WID ("login_button"));
+
+		g_free (prog);
 	}
 
 	return dialog;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]