[nautilus/gnome-2-32: 27/283] Make the primary label bold.



commit d5a85bddb3799ff6dd1065fc86a2b8db1f7d6b1f
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Apr 8 19:15:47 2010 +0200

    Make the primary label bold.
    
    For that, use the same code from GtkMessageDialog.

 .../nautilus-file-conflict-dialog.c                |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file-conflict-dialog.c b/libnautilus-private/nautilus-file-conflict-dialog.c
index 62a6701..1a26416 100644
--- a/libnautilus-private/nautilus-file-conflict-dialog.c
+++ b/libnautilus-private/nautilus-file-conflict-dialog.c
@@ -30,7 +30,8 @@
 #include <glib-object.h>
 #include <gio/gio.h>
 #include <glib/gi18n.h>
-#include <gtk/gtkmessagedialog.h>
+#include <pango/pango.h>
+#include <gtk/gtk.h>
 #include "nautilus-file.h"
 #include "nautilus-icon-info.h"
 
@@ -40,7 +41,7 @@ struct _NautilusFileConflictDialogDetails
 	GFile *source;
 	GFile *destination;
 	GFile *dest_dir;
-	
+
 	/* UI objects */
 	GtkWidget *titles_vbox;
 	GtkWidget *first_hbox;
@@ -162,7 +163,15 @@ file_list_ready_cb (GList *files,
 	gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
 	gtk_box_pack_start (GTK_BOX (details->titles_vbox),
 			    label, FALSE, FALSE, 0);
+	gtk_widget_modify_font (label, NULL);
+	desc = pango_font_description_new ();
+	pango_font_description_set_weight (desc, PANGO_WEIGHT_BOLD);
+	pango_font_description_set_size (desc,
+		pango_font_description_get_size (gtk_widget_get_style (label)->font_desc) * PANGO_SCALE_LARGE);
+	gtk_widget_modify_font (label, desc);
+	pango_font_description_free (desc);
 	gtk_widget_show (label);
+
 	label = gtk_label_new (secondary_text);
 	gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
 	gtk_box_pack_start (GTK_BOX (details->titles_vbox),



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