[epiphany] Remove redundant search labels



commit 56d6c08c3f1a71296d1d9ed03add8c5fd44cdf6c
Author: William Jon McCann <jmccann redhat com>
Date:   Sun Dec 9 11:15:59 2012 +0100

    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 insertions(+), 23 deletions(-)
---
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c
index 81b03aa..0cd9e12 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 f845017..70daa10 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]