NULL-terminate the dialog construction parameters
2001-12-07 Bradford Hovinen <hovinen@ximian.com> * background-properties-capplet.c (main): NULL-terminate the dialog construction parameters
This commit is contained in:
parent
58d92fe12a
commit
8133132cd2
2 changed files with 4 additions and 1 deletions
|
@ -4,6 +4,8 @@
|
|||
capplet_init, instead do the initialization ourselves (note: this
|
||||
means we are no longer a Bonobo control)
|
||||
(dialog_button_clicked_cb): Implement
|
||||
(main): Show the dialog when we are done constructing it
|
||||
(main): NULL-terminate the dialog construction parameters
|
||||
|
||||
2001-10-19 Jakub Steiner <jimmac@ximian.com>
|
||||
|
||||
|
|
|
@ -298,9 +298,10 @@ main (int argc, char **argv)
|
|||
widget = create_dialog ();
|
||||
setup_dialog (widget, changeset);
|
||||
|
||||
dialog = gnome_dialog_new (_("Background properties"), GTK_STOCK_APPLY, GTK_STOCK_CLOSE);
|
||||
dialog = gnome_dialog_new (_("Background properties"), GTK_STOCK_APPLY, GTK_STOCK_CLOSE, NULL);
|
||||
g_signal_connect (G_OBJECT (dialog), "clicked", (GCallback) dialog_button_clicked_cb, changeset);
|
||||
gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (dialog)->vbox), widget, TRUE, TRUE, GNOME_PAD_SMALL);
|
||||
gtk_widget_show_all (dialog);
|
||||
|
||||
gtk_main ();
|
||||
gconf_change_set_unref (changeset);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue