forked from AuroraMiddleware/gtk
demos: Stop using gtk_button_clicked
This commit is contained in:
parent
cf47bb9355
commit
5368f98dd5
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user