aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2012-12-09 18:15:59 +0800
committerBastien Nocera <hadess@hadess.net>2012-12-10 15:55:21 +0800
commit56d6c08c3f1a71296d1d9ed03add8c5fd44cdf6c (patch)
treeb45e6ab6664d8924b6ae986489777bb11c870f36 /src
parent4666852818b260e239b33092678fcad78a1f031c (diff)
downloadgsoc2013-epiphany-56d6c08c3f1a71296d1d9ed03add8c5fd44cdf6c.tar
gsoc2013-epiphany-56d6c08c3f1a71296d1d9ed03add8c5fd44cdf6c.tar.gz
gsoc2013-epiphany-56d6c08c3f1a71296d1d9ed03add8c5fd44cdf6c.tar.bz2
gsoc2013-epiphany-56d6c08c3f1a71296d1d9ed03add8c5fd44cdf6c.tar.lz
gsoc2013-epiphany-56d6c08c3f1a71296d1d9ed03add8c5fd44cdf6c.tar.xz
gsoc2013-epiphany-56d6c08c3f1a71296d1d9ed03add8c5fd44cdf6c.tar.zst
gsoc2013-epiphany-56d6c08c3f1a71296d1d9ed03add8c5fd44cdf6c.zip
Remove redundant search labels
https://bugzilla.gnome.org/show_bug.cgi?id=687744
Diffstat (limited to 'src')
-rw-r--r--src/bookmarks/ephy-bookmarks-editor.c12
-rw-r--r--src/ephy-history-window.c12
2 files changed, 1 insertions, 23 deletions
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c
index 81b03aaa3..0cd9e1274 100644
--- a/src/bookmarks/ephy-bookmarks-editor.c
+++ b/src/bookmarks/ephy-bookmarks-editor.c
@@ -1382,9 +1382,7 @@ static GtkWidget *
build_search_box (EphyBookmarksEditor *editor)
{
GtkWidget *box;
- GtkWidget *label;
GtkWidget *entry;
- char *str;
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
gtk_container_set_border_width (GTK_CONTAINER (box), 6);
@@ -1401,16 +1399,6 @@ build_search_box (EphyBookmarksEditor *editor)
gtk_widget_show_all (entry);
- label = gtk_label_new (NULL);
- gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
- str = g_strconcat ("<b>", _("_Search:"), "</b>", NULL);
- gtk_label_set_markup_with_mnemonic (GTK_LABEL (label), str);
- g_free (str);
- gtk_label_set_mnemonic_widget (GTK_LABEL (label), entry);
- gtk_widget_show (label);
-
- gtk_box_pack_start (GTK_BOX (box),
- label, FALSE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (box),
entry, TRUE, TRUE, 0);
diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c
index f84501747..70daa107b 100644
--- a/src/ephy-history-window.c
+++ b/src/ephy-history-window.c
@@ -776,7 +776,7 @@ time_combo_changed_cb (GtkWidget *combo, EphyHistoryWindow *editor)
static GtkWidget *
build_search_box (EphyHistoryWindow *editor)
{
- GtkWidget *box, *label, *entry;
+ GtkWidget *box, *entry;
GtkWidget *combo;
char *str;
@@ -791,14 +791,6 @@ build_search_box (EphyHistoryWindow *editor)
gtk_widget_show_all (entry);
- label = gtk_label_new (NULL);
- gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
- str = g_strconcat ("<b>", _("_Search:"), "</b>", NULL);
- gtk_label_set_markup_with_mnemonic (GTK_LABEL (label), str);
- g_free (str);
- gtk_label_set_mnemonic_widget (GTK_LABEL (label), entry);
- gtk_widget_show (label);
-
combo = gtk_combo_box_text_new ();
gtk_widget_show (combo);
@@ -829,8 +821,6 @@ build_search_box (EphyHistoryWindow *editor)
editor->priv->time_combo = combo;
gtk_box_pack_start (GTK_BOX (box),
- label, FALSE, TRUE, 0);
- gtk_box_pack_start (GTK_BOX (box),
entry, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (box),
combo, FALSE, TRUE, 0);