[gimp/gtk3-port: 436/444] app: undeprecate stroke-dialog.c



commit 2ab612b8b67a1c9d2c5ea1e1d8625ba3fe374984
Author: Michael Natterer <mitch gimp org>
Date:   Sat May 12 15:33:43 2018 +0200

    app: undeprecate stroke-dialog.c

 app/dialogs/stroke-dialog.c |   20 ++++++--------------
 1 files changed, 6 insertions(+), 14 deletions(-)
---
diff --git a/app/dialogs/stroke-dialog.c b/app/dialogs/stroke-dialog.c
index f63e936..92f4f06 100644
--- a/app/dialogs/stroke-dialog.c
+++ b/app/dialogs/stroke-dialog.c
@@ -166,20 +166,12 @@ stroke_dialog_new (GimpItem           *item,
   g_object_ref_sink (radio_box);
   g_object_unref (radio_box);
 
-  {
-    PangoFontDescription *font_desc;
-
-    font_desc = pango_font_description_new ();
-    pango_font_description_set_weight (font_desc, PANGO_WEIGHT_BOLD);
-
-    gtk_widget_override_font (gtk_bin_get_child (GTK_BIN (cairo_radio)),
-                              font_desc);
-    gtk_widget_override_font (gtk_bin_get_child (GTK_BIN (paint_radio)),
-                              font_desc);
-
-    pango_font_description_free (font_desc);
-  }
-
+  gimp_label_set_attributes (GTK_LABEL (gtk_bin_get_child (GTK_BIN (cairo_radio))),
+                             PANGO_ATTR_WEIGHT, PANGO_WEIGHT_BOLD,
+                             -1);
+  gimp_label_set_attributes (GTK_LABEL (gtk_bin_get_child (GTK_BIN (paint_radio))),
+                             PANGO_ATTR_WEIGHT, PANGO_WEIGHT_BOLD,
+                             -1);
 
   /*  the stroke frame  */
 


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