[gedit] Backport EOG UI improvements to the plugin manager
- From: Paolo Borelli <pborelli src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gedit] Backport EOG UI improvements to the plugin manager
- Date: Sat, 1 Aug 2009 11:57:15 +0000 (UTC)
commit 597b2b8ff323c61370620927234b327e8ca21595
Author: Paolo Borelli <porelli gnome org>
Date: Sat Aug 1 13:57:22 2009 +0200
Backport EOG UI improvements to the plugin manager
gedit/gedit-plugin-manager.c | 16 ++++------------
1 files changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/gedit/gedit-plugin-manager.c b/gedit/gedit-plugin-manager.c
index 0ec16f7..95b02df 100644
--- a/gedit/gedit-plugin-manager.c
+++ b/gedit/gedit-plugin-manager.c
@@ -783,10 +783,8 @@ static void
gedit_plugin_manager_init (GeditPluginManager *pm)
{
GtkWidget *label;
- GtkWidget *alignment;
GtkWidget *viewport;
GtkWidget *hbuttonbox;
- gchar *markup;
gedit_debug (DEBUG_PLUGINS);
@@ -799,20 +797,12 @@ gedit_plugin_manager_init (GeditPluginManager *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);
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_box_pack_start (GTK_BOX (pm), label, FALSE, TRUE, 0);
- alignment = gtk_alignment_new (0., 0., 1., 1.);
- 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,
@@ -820,11 +810,13 @@ gedit_plugin_manager_init (GeditPluginManager *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);
gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox), GTK_BUTTONBOX_END);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]