[gtk+/refactor: 46/137] gtk/gtkmessagedialog.c: use accessor functions to access GtkWidget



commit b97bb2523d98d7f472e6eb4307e5e86d6cf71d36
Author: Javier Jardón <jjardon gnome org>
Date:   Wed Aug 11 23:07:22 2010 +0200

    gtk/gtkmessagedialog.c: use accessor functions to access GtkWidget

 gtk/gtkmessagedialog.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkmessagedialog.c b/gtk/gtkmessagedialog.c
index 9220efc..e68f89f 100644
--- a/gtk/gtkmessagedialog.c
+++ b/gtk/gtkmessagedialog.c
@@ -402,7 +402,7 @@ setup_primary_label_font (GtkMessageDialog *dialog)
 
   if (priv->has_secondary_text && !priv->has_primary_markup)
     {
-      size = pango_font_description_get_size (priv->label->style->font_desc);
+      size = pango_font_description_get_size (gtk_widget_get_style (priv->label)->font_desc);
       font_desc = pango_font_description_new ();
       pango_font_description_set_weight (font_desc, PANGO_WEIGHT_BOLD);
       pango_font_description_set_size (font_desc, size * PANGO_SCALE_LARGE);
@@ -745,7 +745,7 @@ gtk_message_dialog_set_image (GtkMessageDialog *dialog,
 
   priv->message_type = GTK_MESSAGE_OTHER;
 
-  parent = priv->image->parent;
+  parent = gtk_widget_get_parent (priv->image);
   gtk_container_add (GTK_CONTAINER (parent), image);
   gtk_container_remove (GTK_CONTAINER (parent), priv->image);
   gtk_box_reorder_child (GTK_BOX (parent), image, 0);
@@ -1005,7 +1005,7 @@ gtk_message_dialog_style_set (GtkWidget *widget,
   GtkWidget *parent;
   gint border_width;
 
-  parent = gtk_message_dialog_get_image (GTK_MESSAGE_DIALOG (widget))->parent;
+  parent = gtk_widget_get_parent (gtk_message_dialog_get_image (dialog));
 
   if (parent)
     {



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