Re: UI freeze break request (EOG)



Sorry, forgot to attach the patch.

Felix

diff --git a/ChangeLog b/ChangeLog
index c23cba9..d6d1b07 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-08-18  Martin Ejdestig  <marejde gmail com>
+
+	* src/eog-plugin-manager.c (eog_plugin_manager_init):  Make plugin list
+	HIG compliant.
+
 2007-08-17  Felix Riemann  <friemann svn gnome org>
 
 	* src/eog-statusbar.c: Remove unused private structure member.
diff --git a/src/eog-plugin-manager.c b/src/eog-plugin-manager.c
index 03b3568..be6265c 100644
--- a/src/eog-plugin-manager.c
+++ b/src/eog-plugin-manager.c
@@ -821,10 +821,8 @@ static void
 eog_plugin_manager_init (EogPluginManager *pm)
 {
 	GtkWidget *label;
-	GtkWidget *alignment;
 	GtkWidget *viewport;
 	GtkWidget *hbuttonbox;
-	gchar *markup;
 
 	eog_debug (DEBUG_PLUGINS);
 
@@ -832,12 +830,7 @@ eog_plugin_manager_init (EogPluginManager *pm)
 
 	gtk_box_set_spacing (GTK_BOX (pm), 6);
 
-	label = gtk_label_new (NULL);
-	markup = g_markup_printf_escaped ("<span weight=\"bold\">%s</span>",
-					  _("Active Plugins"));
-	gtk_label_set_markup (GTK_LABEL (label), markup);
-
-	g_free (markup);
+	label = gtk_label_new_with_mnemonic (_("Active _Plugins:"));
 
 	gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
 
@@ -845,10 +838,6 @@ eog_plugin_manager_init (EogPluginManager *pm)
 	
 	gtk_box_pack_start (GTK_BOX (pm), label, FALSE, TRUE, 0);
 	
-	alignment = gtk_alignment_new (0.0, 0.0, 1.0, 1.0);
-	gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 0, 12, 0);
-	gtk_box_pack_start (GTK_BOX (pm), alignment, TRUE, TRUE, 0);
-	
 	viewport = gtk_scrolled_window_new (NULL, NULL);
 	gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (viewport),
 					GTK_POLICY_AUTOMATIC,
@@ -856,11 +845,13 @@ eog_plugin_manager_init (EogPluginManager *pm)
 	gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (viewport), 
 					     GTK_SHADOW_IN);
 
-	gtk_container_add (GTK_CONTAINER (alignment), viewport);
+	gtk_box_pack_start (GTK_BOX (pm), viewport, TRUE, TRUE, 0);
 
 	pm->priv->tree = gtk_tree_view_new ();
 	gtk_container_add (GTK_CONTAINER (viewport), pm->priv->tree);
 
+	gtk_label_set_mnemonic_widget (GTK_LABEL (label), pm->priv->tree);
+
 	hbuttonbox = gtk_hbutton_box_new ();
 
 	gtk_box_pack_start (GTK_BOX (pm), hbuttonbox, FALSE, FALSE, 0);


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