Create apply and close buttons, ala the setup tools
2001-09-14 Bradford Hovinen <hovinen@ximian.com> * rollback-capplet-dialog.c (rollback_capplet_dialog_init): Create apply and close buttons, ala the setup tools
This commit is contained in:
parent
a6802d47af
commit
1dd4c2daa2
2 changed files with 10 additions and 17 deletions
|
@ -1,3 +1,8 @@
|
|||
2001-09-14 Bradford Hovinen <hovinen@ximian.com>
|
||||
|
||||
* rollback-capplet-dialog.c (rollback_capplet_dialog_init): Create
|
||||
apply and close buttons, ala the setup tools
|
||||
|
||||
2001-07-27 Bradford Hovinen <hovinen@ximian.com>
|
||||
|
||||
* RELEASE : 1.5.2
|
||||
|
|
|
@ -101,11 +101,9 @@ static void mod_date_by_str (struct tm
|
|||
|
||||
static void rollback_changed_cb (RollbackCappletDialog *dialog,
|
||||
GtkAdjustment *adj);
|
||||
static void ok_cb (GtkButton *button,
|
||||
RollbackCappletDialog *dialog);
|
||||
static void apply_cb (GtkButton *button,
|
||||
RollbackCappletDialog *dialog);
|
||||
static void cancel_cb (GtkButton *button,
|
||||
static void close_cb (GtkButton *button,
|
||||
RollbackCappletDialog *dialog);
|
||||
|
||||
guint
|
||||
|
@ -140,9 +138,8 @@ rollback_capplet_dialog_init (RollbackCappletDialog *dialog)
|
|||
GladeXML *data;
|
||||
|
||||
static const gchar *buttons[] = {
|
||||
GNOME_STOCK_BUTTON_OK,
|
||||
GNOME_STOCK_BUTTON_APPLY,
|
||||
GNOME_STOCK_BUTTON_CANCEL,
|
||||
GNOME_STOCK_BUTTON_CLOSE,
|
||||
NULL
|
||||
};
|
||||
|
||||
|
@ -171,9 +168,8 @@ rollback_capplet_dialog_init (RollbackCappletDialog *dialog)
|
|||
|
||||
gnome_dialog_constructv (GNOME_DIALOG (dialog), _("Rollback"), buttons);
|
||||
|
||||
gnome_dialog_button_connect (GNOME_DIALOG (dialog), 0, GTK_SIGNAL_FUNC (ok_cb), dialog);
|
||||
gnome_dialog_button_connect (GNOME_DIALOG (dialog), 1, GTK_SIGNAL_FUNC (apply_cb), dialog);
|
||||
gnome_dialog_button_connect (GNOME_DIALOG (dialog), 2, GTK_SIGNAL_FUNC (cancel_cb), dialog);
|
||||
gnome_dialog_button_connect (GNOME_DIALOG (dialog), 0, GTK_SIGNAL_FUNC (apply_cb), dialog);
|
||||
gnome_dialog_button_connect (GNOME_DIALOG (dialog), 1, GTK_SIGNAL_FUNC (close_cb), dialog);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -583,14 +579,6 @@ rollback_changed_cb (RollbackCappletDialog *dialog,
|
|||
CORBA_exception_free (&ev);
|
||||
}
|
||||
|
||||
static void
|
||||
ok_cb (GtkButton *button, RollbackCappletDialog *dialog)
|
||||
{
|
||||
apply_settings (dialog);
|
||||
|
||||
gnome_dialog_close (GNOME_DIALOG (dialog));
|
||||
}
|
||||
|
||||
static void
|
||||
apply_cb (GtkButton *button, RollbackCappletDialog *dialog)
|
||||
{
|
||||
|
@ -598,7 +586,7 @@ apply_cb (GtkButton *button, RollbackCappletDialog *dialog)
|
|||
}
|
||||
|
||||
static void
|
||||
cancel_cb (GtkButton *button, RollbackCappletDialog *dialog)
|
||||
close_cb (GtkButton *button, RollbackCappletDialog *dialog)
|
||||
{
|
||||
gnome_dialog_close (GNOME_DIALOG (dialog));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue