Is GTK signal 'realized' similar to the Windows WM_INITDIALOG event message for dialogs?



The WM_INITDIALOG message is emitted for a dialog when it is safe and possible to put data into the controls/widgets of the dialog, for example to put text into entry widgets and fill listviews, combos, toggle checkboxes etc. Would the following fragments work for GTK?

   GtkWidget * dlg = gtk_dialog_new ( ) ;
   ....
   // put empty/unfilled widgets here (table driven)
   ....
   g_signal_connect ( G_OBJECT (dlg) , "realized" ,
                      G_CALLBACK (placedata) , dlg ) ;
    
with callback

  void placedata ( GtkWidget * w , gpointer userdata )
     {
     // fill widgets here with applications data  (tabledriven)
     }





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