[dia] Remove superfluous GTK_WIDGET cast to ease deprecation handling



commit b7d56ab5e6c5c3db6fde469b1100898d85faf55f
Author: Hans Breuer <hans breuer org>
Date:   Tue Aug 10 12:23:04 2010 +0200

    Remove superfluous GTK_WIDGET cast to ease deprecation handling
    
    Due to
    GTK_WIDGET_UNSET_FLAGS(GTK_WIDGET(button), GTK_CAN_FOCUS);
    my automatic GTK3 porting script did go havoc, can safely remove
    that cast because 'button' already is a GtkWidget _and_ the macro
    takes care of the casting anyway

 lib/widgets.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/widgets.c b/lib/widgets.c
index 33379cb..2cf09f5 100644
--- a/lib/widgets.c
+++ b/lib/widgets.c
@@ -2190,8 +2190,8 @@ dia_toggle_button_new(GtkWidget *on_widget, GtkWidget *off_widget)
   /* Make border as small as possible */
   gtk_misc_set_padding(GTK_MISC(images->on), 0, 0);
   gtk_misc_set_padding(GTK_MISC(images->off), 0, 0);
-  GTK_WIDGET_UNSET_FLAGS(GTK_WIDGET(button), GTK_CAN_FOCUS);
-  GTK_WIDGET_UNSET_FLAGS(GTK_WIDGET(button), GTK_CAN_DEFAULT);
+  GTK_WIDGET_UNSET_FLAGS(button, GTK_CAN_FOCUS);
+  GTK_WIDGET_UNSET_FLAGS(button, GTK_CAN_DEFAULT);
 
   rcstyle = gtk_rc_style_new ();  
   rcstyle->xthickness = rcstyle->ythickness = 0;       



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