From 56d6c08c3f1a71296d1d9ed03add8c5fd44cdf6c Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Sun, 9 Dec 2012 11:15:59 +0100 Subject: Remove redundant search labels https://bugzilla.gnome.org/show_bug.cgi?id=687744 --- src/bookmarks/ephy-bookmarks-editor.c | 12 ------------ src/ephy-history-window.c | 12 +----------- 2 files changed, 1 insertion(+), 23 deletions(-) (limited to 'src') 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 ("", _("_Search:"), "", 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 ("", _("_Search:"), "", 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); @@ -828,8 +820,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), -- cgit v1.2.3