[glade] GladeInspector: Add an icon to expand all rows.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] GladeInspector: Add an icon to expand all rows.
- Date: Wed, 10 Apr 2013 16:07:01 +0000 (UTC)
commit 95cd10743ec9b26b3e15c092c068db444a49f4bd
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Thu Apr 11 01:06:18 2013 +0900
GladeInspector: Add an icon to expand all rows.
gladeui/glade-inspector.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gladeui/glade-inspector.c b/gladeui/glade-inspector.c
index 740ecd2..94f1341 100644
--- a/gladeui/glade-inspector.c
+++ b/gladeui/glade-inspector.c
@@ -576,7 +576,7 @@ glade_inspector_init (GladeInspector *inspector)
priv->entry = gtk_entry_new ();
- gtk_entry_set_placeholder_text (GTK_ENTRY (priv->entry), _("< Search Widgets >"));
+ gtk_entry_set_placeholder_text (GTK_ENTRY (priv->entry), _(" < Search Widgets >"));
gtk_widget_show (priv->entry);
gtk_box_pack_start (GTK_BOX (inspector), priv->entry, FALSE, FALSE, 2);
@@ -607,6 +607,11 @@ glade_inspector_init (GladeInspector *inspector)
g_signal_connect (G_OBJECT (selection), "changed",
G_CALLBACK (selection_changed_cb), inspector);
+ /* Expand All */
+ gtk_entry_set_icon_from_stock (GTK_ENTRY (priv->entry), GTK_ENTRY_ICON_SECONDARY, GTK_STOCK_GO_DOWN);
+ gtk_entry_set_icon_tooltip_text (GTK_ENTRY (priv->entry), GTK_ENTRY_ICON_SECONDARY, _("Expand all"));
+ g_signal_connect_swapped (priv->entry, "icon-press", G_CALLBACK (gtk_tree_view_expand_all), priv->view);
+
/* popup menu */
g_signal_connect (G_OBJECT (priv->view), "button-press-event",
G_CALLBACK (button_press_cb), inspector);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]