Commit b9640f4c authored by Cosimo Cecchi's avatar Cosimo Cecchi

Make the primary label bold.

For that, use the same code from GtkMessageDialog.
parent e1a6a08c
......@@ -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),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment