aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPeter Anthony Harvey <paharvey@src.gnome.org>2006-01-10 20:50:56 +0800
committerPeter Anthony Harvey <paharvey@src.gnome.org>2006-01-10 20:50:56 +0800
commit874965668766040d7ad6439630dc20c0edf51b54 (patch)
tree8ea27e6fe6b1dc0bddd2024684f3f1ee8f4fb07a /src
parent301f5e227cf26689e11d444988a890e322f9ff18 (diff)
downloadgsoc2013-epiphany-874965668766040d7ad6439630dc20c0edf51b54.tar
gsoc2013-epiphany-874965668766040d7ad6439630dc20c0edf51b54.tar.gz
gsoc2013-epiphany-874965668766040d7ad6439630dc20c0edf51b54.tar.bz2
gsoc2013-epiphany-874965668766040d7ad6439630dc20c0edf51b54.tar.lz
gsoc2013-epiphany-874965668766040d7ad6439630dc20c0edf51b54.tar.xz
gsoc2013-epiphany-874965668766040d7ad6439630dc20c0edf51b54.tar.zst
gsoc2013-epiphany-874965668766040d7ad6439630dc20c0edf51b54.zip
Change toolbar label if searching for links or text.
Removed some GtkLabels that were created but never used.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-find-toolbar.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ephy-find-toolbar.c b/src/ephy-find-toolbar.c
index c18b47de5..5de2d19ec 100644
--- a/src/ephy-find-toolbar.c
+++ b/src/ephy-find-toolbar.c
@@ -48,6 +48,7 @@ struct _EphyFindToolbarPrivate
EphyWindow *window;
EphyEmbed *embed;
GtkWidget *entry;
+ GtkWidget *label;
GtkToolItem *next;
GtkToolItem *prev;
GtkToolItem *sep;
@@ -146,6 +147,8 @@ clear_status (EphyFindToolbar *toolbar)
gtk_widget_hide (GTK_WIDGET (priv->sep));
gtk_widget_hide (GTK_WIDGET (priv->status_item));
gtk_label_set_text (GTK_LABEL (priv->status_label), "");
+ gtk_label_set_text (GTK_LABEL (priv->label),
+ priv->links_only ? _("Find links:") : _("Find:"));
}
static void
@@ -363,7 +366,7 @@ ephy_find_toolbar_init (EphyFindToolbar *toolbar)
EphyFindToolbarPrivate *priv;
GtkToolbar *gtoolbar;
GtkToolItem *item;
- GtkWidget *alignment, *arrow, *box, *label;
+ GtkWidget *alignment, *arrow, *box;
priv = toolbar->priv = EPHY_FIND_TOOLBAR_GET_PRIVATE (toolbar);
gtoolbar = GTK_TOOLBAR (toolbar);
@@ -377,9 +380,8 @@ ephy_find_toolbar_init (EphyFindToolbar *toolbar)
box = gtk_hbox_new (FALSE, 12);
gtk_container_add (GTK_CONTAINER (alignment), box);
- label = gtk_label_new (NULL);
- gtk_label_set_markup (GTK_LABEL (label), _("Find:"));
- gtk_box_pack_start (GTK_BOX (box), label, FALSE, FALSE, 0);
+ priv->label = gtk_label_new (NULL);
+ gtk_box_pack_start (GTK_BOX (box), priv->label, FALSE, FALSE, 0);
priv->entry = gtk_entry_new ();
gtk_entry_set_width_chars (GTK_ENTRY (priv->entry), 32);
@@ -394,7 +396,6 @@ ephy_find_toolbar_init (EphyFindToolbar *toolbar)
/* Prev */
arrow = gtk_arrow_new (GTK_ARROW_LEFT, GTK_SHADOW_NONE);
- label = gtk_label_new (_("Find Previous"));
priv->prev = gtk_tool_button_new (arrow, _("Find Previous"));
gtk_tool_item_set_is_important (priv->prev, TRUE);
gtk_tool_item_set_tooltip (priv->prev, gtoolbar->tooltips,
@@ -405,7 +406,6 @@ ephy_find_toolbar_init (EphyFindToolbar *toolbar)
/* Next */
arrow = gtk_arrow_new (GTK_ARROW_RIGHT, GTK_SHADOW_NONE);
- label = gtk_label_new (_("Find Next"));
priv->next = gtk_tool_button_new (arrow, _("Find Next"));
gtk_tool_item_set_is_important (priv->next, TRUE);
gtk_tool_item_set_tooltip (priv->next, gtoolbar->tooltips,