mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-13 20:30:11 +00:00
Use WidgetClass.activate_signal getter function
This commit is contained in:
parent
fe9c0db603
commit
3a9cca74fc
@ -324,7 +324,7 @@ add_response_data (GtkDialog *dialog,
|
||||
if (GTK_IS_BUTTON (child))
|
||||
signal_id = g_signal_lookup ("clicked", GTK_TYPE_BUTTON);
|
||||
else
|
||||
signal_id = GTK_WIDGET_GET_CLASS (child)->activate_signal;
|
||||
signal_id = gtk_widget_class_get_activate_signal (GTK_WIDGET_GET_CLASS (child));
|
||||
|
||||
if (signal_id)
|
||||
{
|
||||
@ -1287,7 +1287,7 @@ gtk_dialog_buildable_custom_finished (GtkBuildable *buildable,
|
||||
if (GTK_IS_BUTTON (object))
|
||||
signal_id = g_signal_lookup ("clicked", GTK_TYPE_BUTTON);
|
||||
else
|
||||
signal_id = GTK_WIDGET_GET_CLASS (object)->activate_signal;
|
||||
signal_id = gtk_widget_class_get_activate_signal (GTK_WIDGET_GET_CLASS (object));
|
||||
|
||||
if (signal_id && !is_action)
|
||||
{
|
||||
|
@ -551,7 +551,7 @@ gtk_info_bar_add_action_widget (GtkInfoBar *info_bar,
|
||||
if (GTK_IS_BUTTON (child))
|
||||
signal_id = g_signal_lookup ("clicked", GTK_TYPE_BUTTON);
|
||||
else
|
||||
signal_id = GTK_WIDGET_GET_CLASS (child)->activate_signal;
|
||||
signal_id = gtk_widget_class_get_activate_signal (GTK_WIDGET_GET_CLASS (child));
|
||||
|
||||
if (signal_id)
|
||||
{
|
||||
@ -1019,7 +1019,7 @@ gtk_info_bar_buildable_custom_finished (GtkBuildable *buildable,
|
||||
if (GTK_IS_BUTTON (object))
|
||||
signal_id = g_signal_lookup ("clicked", GTK_TYPE_BUTTON);
|
||||
else
|
||||
signal_id = GTK_WIDGET_GET_CLASS (object)->activate_signal;
|
||||
signal_id = gtk_widget_class_get_activate_signal (GTK_WIDGET_GET_CLASS (object));
|
||||
|
||||
if (signal_id)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user