Commit 79f8148c authored by Bastien Nocera's avatar Bastien Nocera

screenshot: Don't connect to a signal from within GtkBuilder

This seems to only work half the time, saving us precisely a line of
code. Not worth it.
parent 0b3b0d6b
......@@ -50,7 +50,6 @@
<property name="label" translatable="yes">Calculate the number of screenshots</property>
<property name="active">True</property>
<property name="draw-indicator">True</property>
<signal name="toggled" handler="default_screenshot_count_toggled_callback"/>
<property name="left-attach">0</property>
......@@ -38,8 +38,7 @@
static void dialog_response_callback (GtkDialog *dialog, gint response_id, TotemGallery *self);
/* GtkBuilder callbacks */
void default_screenshot_count_toggled_callback (GtkToggleButton *toggle_button, TotemGallery *self);
static void default_screenshot_count_toggled_callback (GtkToggleButton *toggle_button, TotemGallery *self);
struct _TotemGalleryPrivate {
Totem *totem;
......@@ -85,6 +84,8 @@ totem_gallery_new (Totem *totem)
gallery->priv->default_screenshot_count = GTK_CHECK_BUTTON (gtk_builder_get_object (builder, "default_screenshot_count"));
gallery->priv->screenshot_count = GTK_SPIN_BUTTON (gtk_builder_get_object (builder, "screenshot_count"));
gallery->priv->screenshot_width = GTK_SPIN_BUTTON (gtk_builder_get_object (builder, "screenshot_width"));
g_signal_connect (gtk_builder_get_object (builder, "default_screenshot_count"), "toggled",
G_CALLBACK (default_screenshot_count_toggled_callback), gallery);
gallery->priv->totem = totem;
......@@ -133,7 +134,7 @@ totem_gallery_new (Totem *totem)
return gallery;
static void
default_screenshot_count_toggled_callback (GtkToggleButton *toggle_button, TotemGallery *self)
/* Only have the screenshot count spin button sensitive when the default screenshot count
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