summaryrefslogtreecommitdiff
path: root/src/totem-object.c
diff options
context:
space:
mode:
authorKrifa75 <yahiaoui.fakhri@gmail.com>2022-11-16 21:03:22 +0100
committerBastien Nocera <hadess@hadess.net>2022-11-23 12:35:53 +0100
commit1ab4cfb3e4e8b007e5792fa76bd4f63857d3c2d9 (patch)
tree074f0ae2719a001701d9bc61a398392ac03b9fab /src/totem-object.c
parent1745954bab0aecd8022a8bb615d9e2f57c9acf21 (diff)
downloadtotem-1ab4cfb3e4e8b007e5792fa76bd4f63857d3c2d9.tar.gz
main: Move "Go" button signal connection to GtkBuilder
Diffstat (limited to 'src/totem-object.c')
-rw-r--r--src/totem-object.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/totem-object.c b/src/totem-object.c
index 02740cdee..8cb244dec 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -119,6 +119,9 @@ G_MODULE_EXPORT gboolean window_state_event_cb (GtkWidget *window, GdkEventWindo
G_MODULE_EXPORT void seek_slider_changed_cb (GtkAdjustment *adj, TotemObject *totem);
G_MODULE_EXPORT gboolean window_key_press_event_cb (GtkWidget *win, GdkEventKey *event, TotemObject *totem);
+/* Menu */
+G_MODULE_EXPORT void popup_menu_shown_cb (GtkToggleButton *button, TotemObject *totem);
+
enum {
PROP_0,
PROP_FULLSCREEN,
@@ -3870,7 +3873,7 @@ totem_setup_window (TotemObject *totem)
return;
}
-static void
+void
popup_menu_shown_cb (GtkToggleButton *button,
TotemObject *totem)
{
@@ -3951,8 +3954,6 @@ totem_callback_connect (TotemObject *totem)
item = GTK_WIDGET (gtk_builder_get_object (totem->xml, "go_button"));
popover = gtk_menu_button_get_popover (GTK_MENU_BUTTON (item));
gtk_widget_set_size_request (GTK_WIDGET (popover), 175, -1);
- g_signal_connect (G_OBJECT (item), "toggled",
- G_CALLBACK (popup_menu_shown_cb), totem);
/* Main menu */
item = totem->main_menu_button = totem_interface_create_header_button (totem->header,