demos: Stop using gtk_button_clicked

This commit is contained in:
Matthias Clasen 2019-05-18 14:22:12 -04:00
parent cf47bb9355
commit 5368f98dd5
3 changed files with 5 additions and 5 deletions

View File

@ -1669,7 +1669,7 @@ toggle_edit (void)
static void
stop_edit (void)
{
gtk_button_clicked (GTK_BUTTON (edit_toggle));
g_signal_emit_by_name (edit_toggle, "clicked");
}
static gboolean

View File

@ -158,7 +158,7 @@ activate_open (GSimpleAction *action,
return;
button = GTK_WIDGET (g_object_get_data (G_OBJECT (window), "open_menubutton"));
gtk_button_clicked (GTK_BUTTON (button));
g_signal_emit_by_name (button, "clicked");
}
static void
@ -173,7 +173,7 @@ activate_record (GSimpleAction *action,
return;
button = GTK_WIDGET (g_object_get_data (G_OBJECT (window), "record_button"));
gtk_button_clicked (GTK_BUTTON (button));
g_signal_emit_by_name (button, "clicked");
}
static void
@ -188,7 +188,7 @@ activate_lock (GSimpleAction *action,
return;
button = GTK_WIDGET (g_object_get_data (G_OBJECT (window), "lockbutton"));
gtk_button_clicked (GTK_BUTTON (button));
g_signal_emit_by_name (button, "clicked");
}
static void

View File

@ -111,7 +111,7 @@ main (int argc,
button2);
gtk_widget_show (window);
gtk_button_clicked (GTK_BUTTON (button));
g_signal_emit_by_name (button, "clicked");
g_timeout_add (4000, (GSourceFunc) show_error, window);
gtk_main ();