[gtk+] assistant: remove an useless gtk_widget_reset_style() call



commit 6bbb9d6f159f5175c6277cf3fbe2003e8f3c35fc
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed May 18 17:21:22 2011 -0400

    assistant: remove an useless gtk_widget_reset_style() call
    
    It's not needed to call _reset_style() here, as we did not add the
    widget to the parent container yet.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=650530

 gtk/gtkassistant.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkassistant.c b/gtk/gtkassistant.c
index 384b309..8babd00 100644
--- a/gtk/gtkassistant.c
+++ b/gtk/gtkassistant.c
@@ -1574,7 +1574,6 @@ gtk_assistant_insert_page (GtkAssistant *assistant,
 
   context = gtk_widget_get_style_context (page_info->current_title);
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_HIGHLIGHT);
-  gtk_widget_reset_style (page_info->current_title);
 
   gtk_size_group_add_widget (priv->title_size_group, page_info->regular_title);
   gtk_size_group_add_widget (priv->title_size_group, page_info->current_title);



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