patch: gnome-dialog.c



Package: gnome-libs
Version: 1.0.10

The following patch fixes a problem with gnome-dialog.
If the no buttons are requested the buttonbox doesn´t get initalized
when using language bindings as the buttonbox is only initalized
explicitly in the C part. Moving the code around a bit fixes this.

Jan

-- 


 ·´¯`·.¸¸..><((((º>.·´¯`·.¸¸.·´¯`·.¸><((((º>¸.·´¯`·.¸.,..·´¯`·..
 ><((((º>`·.¸¸.·´¯`·.¸.·´¯`·...¸><((((º>
--- libgnomeui/gnome-dialog.c.org	Thu Jun 10 22:36:31 1999
+++ libgnomeui/gnome-dialog.c	Thu Jun 10 22:39:19 1999
@@ -258,6 +258,11 @@
     gnome_dialog_append_button( dialog, 
 				button_name);
   };  
+
+  /* argument list may be null if the user wants to do weird things to the
+   * dialog, but we need to make sure this is initialized */
+  gnome_dialog_init_action_area(dialog);
+
 }
 
 /**
@@ -288,6 +293,11 @@
     gnome_dialog_append_button( dialog, 
 				button_name);
   };  
+
+  /* argument list may be null if the user wants to do weird things to the
+   * dialog, but we need to make sure this is initialized */
+  gnome_dialog_init_action_area(dialog);
+
 }
 
 
@@ -323,9 +333,6 @@
 
   va_end(ap);
 
-  /* argument list may be null if the user wants to do weird things to the
-   * dialog, but we need to make sure this is initialized */
-  gnome_dialog_init_action_area(dialog);
   
   return GTK_WIDGET (dialog);
 }


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