changeset 3120:3262bf0b8831 trunk

Moving gtk_widget_grab_default() below gtk_container_add() to avoid this GTK warning: "gtkwidget.c: widget not within a GtkWindow"
author Christian Birchinger <joker@netswarm.net>
date Fri, 20 Jul 2007 06:27:12 +0200
parents 4ba71e08fed0
children 6b76324748f5
files src/audacious/util.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/util.c	Thu Jul 19 22:48:30 2007 -0500
+++ b/src/audacious/util.c	Fri Jul 20 06:27:12 2007 +0200
@@ -931,13 +931,15 @@
   if ( button_action )
     g_signal_connect( G_OBJECT(dialog_bbox_b1) , "clicked" ,
                       button_action , action_data );
-  GTK_WIDGET_SET_FLAGS( dialog_bbox_b1 , GTK_CAN_DEFAULT);
-  gtk_widget_grab_default( dialog_bbox_b1 );
 
   gtk_container_add( GTK_CONTAINER(dialog_bbox) , dialog_bbox_b1 );
   gtk_box_pack_start( GTK_BOX(dialog_vbox) , dialog_bbox , FALSE , FALSE , 0 );
 
   gtk_container_add( GTK_CONTAINER(dialog) , dialog_vbox );
+
+  GTK_WIDGET_SET_FLAGS( dialog_bbox_b1 , GTK_CAN_DEFAULT);
+  gtk_widget_grab_default( dialog_bbox_b1 );
+
   gtk_widget_show_all(dialog);
 
   return dialog;