diff options
author | Havoc Pennington <hp@redhat.com> | 2001-03-07 21:32:51 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2001-03-07 21:32:51 +0000 |
commit | 29b902a4817e3a4caed166e698f1dda35c8b7ed9 (patch) | |
tree | aac23f9ef300d32726407c9c1a0eed2ff76dee17 /gtk/gtkdialog.h | |
parent | 9d1e2a13231fd894a5b7a0ee5a95035af6f55745 (diff) | |
download | gtk+-29b902a4817e3a4caed166e698f1dda35c8b7ed9.tar.gz |
remove trailer (gtk_entry_set_property): remove trailer
2001-03-07 Havoc Pennington <hp@redhat.com>
* gtk/gtkentry.c (gtk_entry_get_property): remove trailer
(gtk_entry_set_property): remove trailer
* gtk/gtkentry.c (gtk_entry_set_width_chars):
(gtk_entry_get_width_chars): new functions, to set size request to
a given number of characters
* gtk/testgtk.c (create_dialog): beef up the dialog test slightly
* gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
(gtk_dialog_get_has_separator): new function
(run_delete_handler): fix to not emit "response" signal
because we already did in the delete event handler installed
at dialog creation time.
* gtk/gtkdialog.h: add a has_separator property,
add GTK_DIALOG_NO_SEPARATOR flag
Diffstat (limited to 'gtk/gtkdialog.h')
-rw-r--r-- | gtk/gtkdialog.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gtk/gtkdialog.h b/gtk/gtkdialog.h index fc0c178299..7bd8e975bf 100644 --- a/gtk/gtkdialog.h +++ b/gtk/gtkdialog.h @@ -39,9 +39,9 @@ extern "C" { /* Parameters for dialog construction */ typedef enum { - GTK_DIALOG_MODAL, /* call gtk_window_set_modal (win, TRUE) */ - GTK_DIALOG_DESTROY_WITH_PARENT /* call gtk_window_set_destroy_with_parent () */ - + GTK_DIALOG_MODAL, /* call gtk_window_set_modal (win, TRUE) */ + GTK_DIALOG_DESTROY_WITH_PARENT, /* call gtk_window_set_destroy_with_parent () */ + GTK_DIALOG_NO_SEPARATOR /* no separator bar above buttons */ } GtkDialogFlags; /* Convenience enum to use for response_id's. Positive values are @@ -99,6 +99,9 @@ struct _GtkDialog GtkWidget *vbox; GtkWidget *action_area; + + /*< private >*/ + GtkWidget *separator; }; struct _GtkDialogClass @@ -134,6 +137,10 @@ void gtk_dialog_set_response_sensitive (GtkDialog *dialog, void gtk_dialog_set_default_response (GtkDialog *dialog, gint response_id); +void gtk_dialog_set_has_separator (GtkDialog *dialog, + gboolean setting); +gboolean gtk_dialog_get_has_separator (GtkDialog *dialog); + /* Emit response signal */ void gtk_dialog_response (GtkDialog *dialog, gint response_id); |