Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2004-12-21 23:54:34 (GMT)
committer Havoc Pennington <hp@src.gnome.org>2004-12-21 23:54:34 (GMT)
commit3e73e947a3a8c03da8f35f52e2a42ba066e2be2a (patch)
tree536b2a6e963ee177976f8578deb42f65885f2283
parent7acd15e0881622f4423f01212c1694af4d2b3f07 (diff)
change buttons to previous/next instead of back/forward
2004-12-21 Havoc Pennington <hp@redhat.com> * shell/eggfindbar.c (egg_find_bar_init): change buttons to previous/next instead of back/forward
-rw-r--r--ChangeLog5
-rw-r--r--shell/eggfindbar.c34
2 files changed, 36 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 0239df9..d82900e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-21 Havoc Pennington <hp@redhat.com>
+
+ * shell/eggfindbar.c (egg_find_bar_init): change buttons to
+ previous/next instead of back/forward
+
Tue Dec 21 18:26:24 2004 Owen Taylor <otaylor@redhat.com>
* backend/ev-document.[ch]: Fix a couple of problems so
diff --git a/shell/eggfindbar.c b/shell/eggfindbar.c
index c81120c..4ce4662 100644
--- a/shell/eggfindbar.c
+++ b/shell/eggfindbar.c
@@ -266,6 +266,8 @@ egg_find_bar_init (EggFindBar *find_bar)
GtkWidget *label;
GtkWidget *separator;
GtkWidget *image;
+ GtkWidget *image_back;
+ GtkWidget *image_forward;
/* Data */
priv = EGG_FIND_BAR_GET_PRIVATE (find_bar);
@@ -291,11 +293,35 @@ egg_find_bar_init (EggFindBar *find_bar)
priv->find_entry = gtk_entry_new ();
gtk_label_set_mnemonic_widget (GTK_LABEL (label), priv->find_entry);
- priv->previous_button = gtk_button_new_from_stock (GTK_STOCK_GO_BACK);
- priv->next_button = gtk_button_new_from_stock (GTK_STOCK_GO_FORWARD);
-
+ priv->previous_button = gtk_button_new_with_mnemonic (_("_Previous"));
+ priv->next_button = gtk_button_new_with_mnemonic (_("_Next"));
+
+ image_back = gtk_image_new_from_stock (GTK_STOCK_GO_BACK,
+ GTK_ICON_SIZE_BUTTON);
+ image_forward = gtk_image_new_from_stock (GTK_STOCK_GO_FORWARD,
+ GTK_ICON_SIZE_BUTTON);
+
+ gtk_button_set_image (GTK_BUTTON (priv->previous_button),
+ image_back);
+ gtk_button_set_image (GTK_BUTTON (priv->next_button),
+ image_forward);
+
priv->case_button = gtk_check_button_new_with_mnemonic (_("C_ase Sensitive"));
+#if 0
+ {
+ GtkWidget *button_label;
+ /* This hack doesn't work because GtkCheckButton doesn't pass the
+ * larger size allocation to the label, it always gives the label
+ * its exact request. If you un-ifdef this, set the box back
+ * on case_button to TRUE, TRUE below
+ */
+ button_label = gtk_bin_get_child (GTK_BIN (priv->case_button));
+ gtk_label_set_ellipsize (GTK_LABEL (button_label),
+ PANGO_ELLIPSIZE_END);
+ }
+#endif
+
gtk_box_pack_start (GTK_BOX (priv->hbox),
priv->close_button, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (priv->hbox),
@@ -321,6 +347,8 @@ egg_find_bar_init (EggFindBar *find_bar)
gtk_widget_show (separator);
gtk_widget_show (label);
gtk_widget_show (image);
+ gtk_widget_show (image_back);
+ gtk_widget_show (image_forward);
gtk_widget_pop_composite_child ();