summaryrefslogtreecommitdiff
path: root/gtk/gtkdialog.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-05-03 04:44:53 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-05-03 04:44:53 +0000
commit2430a4018ba0bbf592aab27630273762cfe20966 (patch)
tree332b9e8c84bd71fb65f849a6af8c0d4b23c10648 /gtk/gtkdialog.c
parent093b389f6ad4a7c88e739a4a84389cce53d991a9 (diff)
downloadgdk-pixbuf-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)
Diffstat (limited to 'gtk/gtkdialog.c')
-rw-r--r--gtk/gtkdialog.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c
index d20867a41..50a3871e6 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;