+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:
+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:
+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:
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
{
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);
}
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;
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);