[nautilus] query-editor: make all the labels' appearance consistent



commit 111be78c86bc824b291d9b402a2ff897b2fa2dc7
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Mar 21 11:33:24 2011 -0400

    query-editor: make all the labels' appearance consistent

 src/nautilus-query-editor.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-query-editor.c b/src/nautilus-query-editor.c
index 21c76cc..054c868 100644
--- a/src/nautilus-query-editor.c
+++ b/src/nautilus-query-editor.c
@@ -1096,14 +1096,21 @@ static void
 setup_external_entry (NautilusQueryEditor *editor, GtkWidget *entry)
 {
 	GtkWidget *hbox, *label;
+	gchar *label_markup;
 	
 	/* Create visible part: */
 	hbox = gtk_hbox_new (FALSE, 6);
 	gtk_widget_show (hbox);
 	gtk_box_pack_start (GTK_BOX (editor->details->visible_vbox), hbox, FALSE, FALSE, 0);
 
-	label = gtk_label_new (_("Search results"));
+	label_markup = g_strconcat ("<b>", _("Search results"), "</b>", NULL);
+	label = gtk_label_new (NULL);
+	gtk_label_set_markup (GTK_LABEL (label), label_markup);
 	gtk_widget_show (label);
+
+	gtk_style_context_add_class (gtk_widget_get_style_context (label),
+				     "nautilus-cluebar-label");
+	
 	gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
 	
 	editor->details->entry = entry;
@@ -1114,6 +1121,7 @@ setup_external_entry (NautilusQueryEditor *editor, GtkWidget *entry)
 
 	finish_first_line (editor, hbox, FALSE);
 
+	g_free (label_markup);
 }
 
 void



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