[cheese] add preference dialog for the burst mode
- From: Daniel G. Siegel <dgsiegel src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [cheese] add preference dialog for the burst mode
- Date: Mon, 3 Aug 2009 20:08:57 +0000 (UTC)
commit 160ff1590587e12cda0f02f37ddd8e88c6853e48
Author: daniel g. siegel <dgsiegel gnome org>
Date: Mon Aug 3 02:30:14 2009 +0200
add preference dialog for the burst mode
allow to configure the delay and the amount of photos, which should
be taken in the burst mode.
data/cheese-prefs.glade | 107 ++++++++++++++++++++++-
data/cheese-prefs.ui | 130 +++++++++++++++++++++++++--
src/Makefile.am | 4 +-
src/cheese-prefs-burst-spinbox.c | 186 ++++++++++++++++++++++++++++++++++++++
src/cheese-prefs-burst-spinbox.h | 56 ++++++++++++
src/cheese-prefs-dialog.c | 19 ++++-
src/cheese-prefs-dialog.h | 1 +
7 files changed, 492 insertions(+), 11 deletions(-)
---
diff --git a/data/cheese-prefs.glade b/data/cheese-prefs.glade
index 7b32d0e..6b90e4e 100644
--- a/data/cheese-prefs.glade
+++ b/data/cheese-prefs.glade
@@ -278,6 +278,111 @@
<property name="position">1</property>
</packing>
</child>
+ <child>
+ <widget class="GtkFrame" id="frame1">
+ <property name="visible">True</property>
+ <property name="label_xalign">0</property>
+ <property name="shadow_type">none</property>
+ <child>
+ <widget class="GtkHBox" id="hbox3">
+ <property name="visible">True</property>
+ <property name="border_width">4</property>
+ <property name="spacing">10</property>
+ <child>
+ <widget class="GtkVBox" id="vbox6">
+ <property name="visible">True</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">2</property>
+ <child>
+ <widget class="GtkAlignment" id="alignment7">
+ <property name="visible">True</property>
+ <property name="xalign">0</property>
+ <property name="xscale">0</property>
+ <property name="left_padding">10</property>
+ <child>
+ <widget class="GtkLabel" id="label9">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Number of photos</property>
+ </widget>
+ </child>
+ </widget>
+ <packing>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkAlignment" id="alignment8">
+ <property name="visible">True</property>
+ <property name="xalign">0</property>
+ <property name="xscale">0</property>
+ <property name="left_padding">10</property>
+ <child>
+ <widget class="GtkLabel" id="label10">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Delay between photos (secs.)</property>
+ </widget>
+ </child>
+ </widget>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkVBox" id="vbox7">
+ <property name="visible">True</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">2</property>
+ <child>
+ <widget class="GtkSpinButton" id="burst_repeat">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="invisible_char">●</property>
+ <property name="adjustment">2 3 100 1 10 0</property>
+ </widget>
+ <packing>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkSpinButton" id="burst_delay">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="invisible_char">●</property>
+ <property name="adjustment">0 1 100 1 10 0</property>
+ </widget>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkLabel" id="label11">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes"><b>Burst mode</b></property>
+ <property name="use_markup">True</property>
+ </widget>
+ <packing>
+ <property name="type">label_item</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="position">2</property>
+ </packing>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
@@ -298,7 +403,7 @@
<property name="receives_default">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="use_stock">True</property>
- <property name="response_id">0</property>
+ <property name="response_id">0</property>
</widget>
<packing>
<property name="expand">False</property>
diff --git a/data/cheese-prefs.ui b/data/cheese-prefs.ui
index 08eb9d4..5387949 100644
--- a/data/cheese-prefs.ui
+++ b/data/cheese-prefs.ui
@@ -1,5 +1,21 @@
<?xml version="1.0"?>
<interface>
+ <object class="GtkAdjustment" id="adjustment1">
+ <property name="upper">100</property>
+ <property name="lower">3</property>
+ <property name="page_increment">10</property>
+ <property name="step_increment">1</property>
+ <property name="page_size">0</property>
+ <property name="value">2</property>
+ </object>
+ <object class="GtkAdjustment" id="adjustment2">
+ <property name="upper">100</property>
+ <property name="lower">1</property>
+ <property name="page_increment">10</property>
+ <property name="step_increment">1</property>
+ <property name="page_size">0</property>
+ <property name="value">0</property>
+ </object>
<!-- interface-requires gtk+ 2.16 -->
<!-- interface-naming-policy toplevel-contextual -->
<object class="GtkDialog" id="cheese_prefs_dialog">
@@ -107,10 +123,8 @@
<child type="label">
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
- <property name="label" translatable="yes">Webcam</property>
- <attributes>
- <attribute name="weight" value="bold"/>
- </attributes>
+ <property name="label" translatable="yes"><b>Webcam</b></property>
+ <property name="use_markup">True</property>
</object>
</child>
</object>
@@ -263,10 +277,8 @@
<child type="label">
<object class="GtkLabel" id="label3">
<property name="visible">True</property>
- <property name="label" translatable="yes">Image properties</property>
- <attributes>
- <attribute name="weight" value="bold"/>
- </attributes>
+ <property name="label" translatable="yes"><b>Image properties</b></property>
+ <property name="use_markup">True</property>
</object>
</child>
</object>
@@ -276,6 +288,108 @@
<property name="position">1</property>
</packing>
</child>
+ <child>
+ <object class="GtkFrame" id="frame1">
+ <property name="visible">True</property>
+ <property name="label_xalign">0</property>
+ <property name="shadow_type">none</property>
+ <child>
+ <object class="GtkHBox" id="hbox3">
+ <property name="visible">True</property>
+ <property name="border_width">4</property>
+ <property name="spacing">10</property>
+ <child>
+ <object class="GtkVBox" id="vbox6">
+ <property name="visible">True</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">2</property>
+ <child>
+ <object class="GtkAlignment" id="alignment7">
+ <property name="visible">True</property>
+ <property name="xalign">0</property>
+ <property name="xscale">0</property>
+ <property name="left_padding">10</property>
+ <child>
+ <object class="GtkLabel" id="label9">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Number of photos</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkAlignment" id="alignment8">
+ <property name="visible">True</property>
+ <property name="xalign">0</property>
+ <property name="xscale">0</property>
+ <property name="left_padding">10</property>
+ <child>
+ <object class="GtkLabel" id="label10">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Delay between photos (secs.)</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkVBox" id="vbox7">
+ <property name="visible">True</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">2</property>
+ <child>
+ <object class="GtkSpinButton" id="burst_repeat">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="invisible_char">●</property>
+ <property name="adjustment">adjustment1</property>
+ </object>
+ <packing>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSpinButton" id="burst_delay">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="invisible_char">●</property>
+ <property name="adjustment">adjustment2</property>
+ </object>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ <child type="label">
+ <object class="GtkLabel" id="label11">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes"><b>Burst mode</b></property>
+ <property name="use_markup">True</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="position">2</property>
+ </packing>
+ </child>
</object>
<packing>
<property name="expand">False</property>
diff --git a/src/Makefile.am b/src/Makefile.am
index b8ae4f5..d713c6d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -53,7 +53,9 @@ cheese_SOURCES = \
cheese-flash.h \
cheese-flash.c \
cheese-prefs-webcam-combo.c \
- cheese-prefs-webcam-combo.h
+ cheese-prefs-webcam-combo.h \
+ cheese-prefs-burst-spinbox.h \
+ cheese-prefs-burst-spinbox.c
cheese_LDADD = \
$(CHEESE_LIBS)
diff --git a/src/cheese-prefs-burst-spinbox.c b/src/cheese-prefs-burst-spinbox.c
new file mode 100644
index 0000000..4e6d0bd
--- /dev/null
+++ b/src/cheese-prefs-burst-spinbox.c
@@ -0,0 +1,186 @@
+/*
+ * Copyright © 2009 Aidan Delaney <a j delaney brighton ac uk>
+ * Copyright © 2009 daniel g. siegel <dgsiegel gmail com>
+ * Copyright © 2009 Filippo Argiolas <filippo argiolas gmail com>
+ *
+ * Licensed under the GNU General Public License Version 2
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <string.h>
+#include <glib.h>
+
+#include "cheese-prefs-widget.h"
+#include "cheese-prefs-burst-spinbox.h"
+
+enum
+{
+ PROP_0,
+ PROP_GCONF_KEY,
+};
+
+typedef struct CheesePrefsBurstSpinboxPrivate
+{
+ gchar *gconf_key;
+} CheesePrefsBurstSpinboxPrivate;
+
+#define CHEESE_PREFS_BURST_SPINBOX_GET_PRIVATE(o) \
+ (G_TYPE_INSTANCE_GET_PRIVATE ((o), CHEESE_TYPE_PREFS_BURST_SPINBOX, \
+ CheesePrefsBurstSpinboxPrivate))
+
+G_DEFINE_TYPE (CheesePrefsBurstSpinbox, cheese_prefs_burst_spinbox, CHEESE_TYPE_PREFS_WIDGET);
+
+static void
+cheese_prefs_burst_spinbox_init (CheesePrefsBurstSpinbox *self)
+{
+ CheesePrefsBurstSpinboxPrivate *priv = CHEESE_PREFS_BURST_SPINBOX_GET_PRIVATE (self);
+
+ priv->gconf_key = NULL;
+}
+
+static void
+cheese_prefs_burst_spinbox_finalize (GObject *object)
+{
+ CheesePrefsBurstSpinbox *self = CHEESE_PREFS_BURST_SPINBOX (object);
+ CheesePrefsBurstSpinboxPrivate *priv = CHEESE_PREFS_BURST_SPINBOX_GET_PRIVATE (self);
+
+ g_free (priv->gconf_key);
+
+ G_OBJECT_CLASS (cheese_prefs_burst_spinbox_parent_class)->finalize (object);
+}
+
+static void
+cheese_prefs_burst_spinbox_value_changed (GtkSpinButton *spinbox, CheesePrefsBurstSpinbox *self)
+{
+ CheesePrefsBurstSpinboxPrivate *priv = CHEESE_PREFS_BURST_SPINBOX_GET_PRIVATE (self);
+ int value = 0;
+
+ if (strcmp ("gconf_prop_burst_delay", priv->gconf_key) == 0)
+ {
+ /* Inputted f is eg: 1.5s. Convert to millisec */
+ gdouble d = gtk_spin_button_get_value (spinbox);
+ value = (int) (d * 1000);
+ }
+ else
+ {
+ value = gtk_spin_button_get_value_as_int (spinbox);
+ }
+
+ g_object_set (CHEESE_PREFS_WIDGET (self)->gconf, priv->gconf_key, value, NULL);
+ cheese_prefs_widget_notify_changed (CHEESE_PREFS_WIDGET (self));
+}
+
+static void
+cheese_prefs_burst_spinbox_synchronize (CheesePrefsWidget *prefs_widget)
+{
+ CheesePrefsBurstSpinbox *self = CHEESE_PREFS_BURST_SPINBOX (prefs_widget);
+ CheesePrefsBurstSpinboxPrivate *priv = CHEESE_PREFS_BURST_SPINBOX_GET_PRIVATE (self);
+
+ GtkWidget *spinbox;
+ int stored_value;
+
+ g_object_get (prefs_widget, "widget", &spinbox, NULL);
+
+ g_object_get (CHEESE_PREFS_WIDGET (self)->gconf, priv->gconf_key, &stored_value, NULL);
+
+ if (!g_ascii_strncasecmp ("gconf_prop_burst_delay", priv->gconf_key, 22))
+ {
+ stored_value = (int) (stored_value / 1000.0);
+ }
+ gtk_spin_button_set_value (GTK_SPIN_BUTTON (spinbox), stored_value);
+
+ /* Disconnect to prevent a whole bunch of changed notifications */
+ g_signal_handlers_disconnect_by_func (spinbox, cheese_prefs_burst_spinbox_value_changed, prefs_widget);
+
+ g_signal_connect (G_OBJECT (spinbox), "value-changed",
+ G_CALLBACK (cheese_prefs_burst_spinbox_value_changed),
+ self);
+}
+
+static void
+cheese_prefs_burst_spinbox_set_property (GObject *object, guint prop_id,
+ const GValue *value,
+ GParamSpec *pspec)
+{
+ CheesePrefsBurstSpinboxPrivate *priv = CHEESE_PREFS_BURST_SPINBOX_GET_PRIVATE (object);
+
+ switch (prop_id)
+ {
+ case PROP_GCONF_KEY:
+ priv->gconf_key = g_value_dup_string (value);
+ break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+ break;
+ }
+}
+
+static void
+cheese_prefs_burst_spinbox_get_property (GObject *object, guint prop_id,
+ GValue *value, GParamSpec *pspec)
+{
+ CheesePrefsBurstSpinboxPrivate *priv = CHEESE_PREFS_BURST_SPINBOX_GET_PRIVATE (object);
+
+ g_return_if_fail (CHEESE_IS_PREFS_BURST_SPINBOX (object));
+
+ switch (prop_id)
+ {
+ case PROP_GCONF_KEY:
+ g_value_set_string (value, priv->gconf_key);
+ break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+ break;
+ }
+}
+
+static void
+cheese_prefs_burst_spinbox_class_init (CheesePrefsBurstSpinboxClass *klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ CheesePrefsWidgetClass *parent_class = CHEESE_PREFS_WIDGET_CLASS (klass);
+
+ g_type_class_add_private (klass, sizeof (CheesePrefsBurstSpinboxPrivate));
+
+ object_class->finalize = cheese_prefs_burst_spinbox_finalize;
+ object_class->set_property = cheese_prefs_burst_spinbox_set_property;
+ object_class->get_property = cheese_prefs_burst_spinbox_get_property;
+ parent_class->synchronize = cheese_prefs_burst_spinbox_synchronize;
+
+ g_object_class_install_property (object_class,
+ PROP_GCONF_KEY,
+ g_param_spec_string ("gconf_key",
+ "",
+ "GConf key for burst mode",
+ "",
+ G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
+}
+
+CheesePrefsBurstSpinbox *
+cheese_prefs_burst_spinbox_new (GtkWidget *spinbox,
+ const gchar *gconf_key)
+{
+ CheesePrefsBurstSpinbox *self;
+ CheesePrefsBurstSpinboxPrivate *priv;
+
+ self = g_object_new (CHEESE_TYPE_PREFS_BURST_SPINBOX,
+ "widget", spinbox,
+ "gconf_key", gconf_key,
+ NULL);
+
+ priv = CHEESE_PREFS_BURST_SPINBOX_GET_PRIVATE (self);
+
+ return self;
+}
diff --git a/src/cheese-prefs-burst-spinbox.h b/src/cheese-prefs-burst-spinbox.h
new file mode 100644
index 0000000..27391a8
--- /dev/null
+++ b/src/cheese-prefs-burst-spinbox.h
@@ -0,0 +1,56 @@
+/*
+ * Copyright © 2009 Filippo Argiolas <filippo argiolas gmail com>
+ *
+ * Licensed under the GNU General Public License Version 2
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef _CHEESE_PREFS_BURST_SPINBOX_H_
+#define _CHEESE_PREFS_BURST_SPINBOX_H_
+
+#include <glib-object.h>
+#include "cheese-prefs-widget.h"
+#include "cheese-webcam.h"
+
+G_BEGIN_DECLS
+
+#define CHEESE_TYPE_PREFS_BURST_SPINBOX (cheese_prefs_burst_spinbox_get_type ())
+#define CHEESE_PREFS_BURST_SPINBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CHEESE_TYPE_PREFS_BURST_SPINBOX, \
+ CheesePrefsBurstSpinbox))
+#define CHEESE_PREFS_BURST_SPINBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CHEESE_TYPE_PREFS_BURST_SPINBOX, \
+ CheesePrefsBurstSpinboxClass))
+#define CHEESE_IS_PREFS_BURST_SPINBOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CHEESE_TYPE_PREFS_BURST_SPINBOX))
+#define CHEESE_IS_PREFS_BURST_SPINBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CHEESE_TYPE_PREFS_BURST_SPINBOX))
+#define CHEESE_PREFS_BURST_SPINBOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CHEESE_TYPE_PREFS_BURST_SPINBOX, \
+ CheesePrefsBurstSpinboxClass))
+
+typedef struct _CheesePrefsBurstSpinboxClass CheesePrefsBurstSpinboxClass;
+typedef struct _CheesePrefsBurstSpinbox CheesePrefsBurstSpinbox;
+
+struct _CheesePrefsBurstSpinboxClass
+{
+ CheesePrefsWidgetClass parent_class;
+};
+
+struct _CheesePrefsBurstSpinbox
+{
+ CheesePrefsWidget parent_instance;
+};
+
+GType cheese_prefs_burst_spinbox_get_type (void) G_GNUC_CONST;
+CheesePrefsBurstSpinbox *cheese_prefs_burst_spinbox_new (GtkWidget *scale,
+ const gchar *gconf_key);
+
+#endif /* _CHEESE_PREFS_BURST_SPINBOX_H_ */
diff --git a/src/cheese-prefs-dialog.c b/src/cheese-prefs-dialog.c
index 9bb1814..449fe85 100644
--- a/src/cheese-prefs-dialog.c
+++ b/src/cheese-prefs-dialog.c
@@ -1,6 +1,6 @@
/*
* Copyright © 2008 James Liggett <jrliggett cox net>
- * Copyright © 2008 daniel g. siegel <dgsiegel gmail com>
+ * Copyright © 2008, 2009 daniel g. siegel <dgsiegel gmail com>
*
* Licensed under the GNU General Public License Version 2
*
@@ -29,6 +29,8 @@ typedef struct
GtkWidget *contrast_scale;
GtkWidget *saturation_scale;
GtkWidget *hue_scale;
+ GtkWidget *burst_repeat;
+ GtkWidget *burst_delay;
GtkWidget *parent;
CheeseWebcam *webcam;
@@ -66,6 +68,9 @@ cheese_prefs_dialog_create_dialog (CheesePrefsDialog *prefs_dialog)
"saturation_scale"));
prefs_dialog->hue_scale = GTK_WIDGET (gtk_builder_get_object (builder,
"hue_scale"));
+ prefs_dialog->burst_repeat = GTK_WIDGET (gtk_builder_get_object (builder, "burst_repeat"));
+
+ prefs_dialog->burst_delay = GTK_WIDGET (gtk_builder_get_object (builder, "burst_delay"));
gtk_window_set_transient_for (GTK_WINDOW (prefs_dialog->cheese_prefs_dialog),
GTK_WINDOW (prefs_dialog->parent));
@@ -120,6 +125,8 @@ cheese_prefs_dialog_setup_widgets (CheesePrefsDialog *prefs_dialog)
CheesePrefsWidget *contrast_widget;
CheesePrefsWidget *saturation_widget;
CheesePrefsWidget *hue_widget;
+ CheesePrefsWidget *burst_delay_widget;
+ CheesePrefsWidget *burst_repeat_widget;
resolution_widget = CHEESE_PREFS_WIDGET (cheese_prefs_resolution_combo_new (prefs_dialog->resolution_combo_box,
prefs_dialog->webcam,
@@ -164,6 +171,16 @@ cheese_prefs_dialog_setup_widgets (CheesePrefsDialog *prefs_dialog)
cheese_prefs_dialog_widgets_add (prefs_dialog->widgets, hue_widget);
+ burst_repeat_widget = CHEESE_PREFS_WIDGET (cheese_prefs_burst_spinbox_new (prefs_dialog->burst_repeat,
+ "gconf_prop_burst_repeat"));
+
+ cheese_prefs_dialog_widgets_add (prefs_dialog->widgets, burst_repeat_widget);
+
+ burst_delay_widget = CHEESE_PREFS_WIDGET (cheese_prefs_burst_spinbox_new (prefs_dialog->burst_delay,
+ "gconf_prop_burst_delay"));
+
+ cheese_prefs_dialog_widgets_add (prefs_dialog->widgets, burst_delay_widget);
+
cheese_prefs_dialog_widgets_synchronize (prefs_dialog->widgets);
}
diff --git a/src/cheese-prefs-dialog.h b/src/cheese-prefs-dialog.h
index d12b905..569f7f8 100644
--- a/src/cheese-prefs-dialog.h
+++ b/src/cheese-prefs-dialog.h
@@ -29,6 +29,7 @@
#include "cheese-prefs-resolution-combo.h"
#include "cheese-prefs-webcam-combo.h"
#include "cheese-prefs-balance-scale.h"
+#include "cheese-prefs-burst-spinbox.h"
void cheese_prefs_dialog_run (GtkWidget *parent, CheeseGConf *gconf, CheeseWebcam *webcam);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]