Commit 5368f98d authored by Matthias Clasen's avatar Matthias Clasen
Browse files

demos: Stop using gtk_button_clicked

parent cf47bb93
......@@ -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 ();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment