diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-05-03 04:44:53 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-05-03 04:44:53 +0000 |
commit | 2430a4018ba0bbf592aab27630273762cfe20966 (patch) | |
tree | 332b9e8c84bd71fb65f849a6af8c0d4b23c10648 | |
parent | 093b389f6ad4a7c88e739a4a84389cce53d991a9 (diff) | |
download | gtk+-2430a4018ba0bbf592aab27630273762cfe20966.tar.gz |
Make this function public. (#170748, Morten Welinder)
2005-05-03 Matthias Clasen <mclasen@redhat.com>
* gtk/gtk.symbols:
* gtk/gtkdialog.h:
* gtk/gtkdialog.c (gtk_dialog_get_response_for_widget):
Make this function public. (#170748, Morten Welinder)
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 7 | ||||
-rw-r--r-- | gtk/gtk.symbols | 1 | ||||
-rw-r--r-- | gtk/gtkdialog.c | 19 | ||||
-rw-r--r-- | gtk/gtkdialog.h | 2 |
6 files changed, 40 insertions, 3 deletions
@@ -1,3 +1,10 @@ +2005-05-03 Matthias Clasen <mclasen@redhat.com> + + * gtk/gtk.symbols: + * gtk/gtkdialog.h: + * gtk/gtkdialog.c (gtk_dialog_get_response_for_widget): + Make this function public. (#170748, Morten Welinder) + 2005-05-02 Federico Mena Quintero <federico@ximian.com> Merged from gtk-2-6: diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 715c64ec44..cfd61c3186 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,10 @@ +2005-05-03 Matthias Clasen <mclasen@redhat.com> + + * gtk/gtk.symbols: + * gtk/gtkdialog.h: + * gtk/gtkdialog.c (gtk_dialog_get_response_for_widget): + Make this function public. (#170748, Morten Welinder) + 2005-05-02 Federico Mena Quintero <federico@ximian.com> Merged from gtk-2-6: diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 715c64ec44..cfd61c3186 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,10 @@ +2005-05-03 Matthias Clasen <mclasen@redhat.com> + + * gtk/gtk.symbols: + * gtk/gtkdialog.h: + * gtk/gtkdialog.c (gtk_dialog_get_response_for_widget): + Make this function public. (#170748, Morten Welinder) + 2005-05-02 Federico Mena Quintero <federico@ximian.com> Merged from gtk-2-6: diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols index 2cd1ec0fd4..fc46bac5df 100644 --- a/gtk/gtk.symbols +++ b/gtk/gtk.symbols @@ -910,6 +910,7 @@ gtk_dialog_add_action_widget gtk_dialog_add_button gtk_dialog_add_buttons G_GNUC_NULL_TERMINATED gtk_dialog_get_has_separator +gtk_dialog_get_response_for_widget gtk_dialog_get_type G_GNUC_CONST gtk_dialog_new gtk_dialog_new_with_buttons G_GNUC_NULL_TERMINATED diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c index d20867a411..50a3871e68 100644 --- a/gtk/gtkdialog.c +++ b/gtk/gtkdialog.c @@ -552,7 +552,7 @@ action_widget_activated (GtkWidget *widget, GtkDialog *dialog) { gint response_id; - response_id = _gtk_dialog_get_response_for_widget (dialog, widget); + response_id = gtk_dialog_get_response_for_widget (dialog, widget); gtk_dialog_response (dialog, response_id); } @@ -1049,9 +1049,22 @@ _gtk_dialog_set_ignore_separator (GtkDialog *dialog, priv->ignore_separator = ignore_separator; } +/** + * gtk_dialog_get_response_for_widget: + * @dialog: a #GtkDialog + * @widget: a widget in the action area of @dialog + * + * Gets the response id of a widget in the action area + * of a dialog. + * + * Returns: the response id of @widget, or %GTK_RESPONSE_NONE + * if @widget doesn't have a response id set. + * + * Since: 2.8 + */ gint -_gtk_dialog_get_response_for_widget (GtkDialog *dialog, - GtkWidget *widget) +gtk_dialog_get_response_for_widget (GtkDialog *dialog, + GtkWidget *widget) { ResponseData *rd; diff --git a/gtk/gtkdialog.h b/gtk/gtkdialog.h index 0af0643b14..0219cf7459 100644 --- a/gtk/gtkdialog.h +++ b/gtk/gtkdialog.h @@ -145,6 +145,8 @@ void gtk_dialog_set_response_sensitive (GtkDialog *dialog, gboolean setting); void gtk_dialog_set_default_response (GtkDialog *dialog, gint response_id); +gint gtk_dialog_get_response_for_widget (GtkDialog *dialog, + GtkWidget *widget); void gtk_dialog_set_has_separator (GtkDialog *dialog, gboolean setting); |