[Xfce4-commits] <xfburn:master> Remove empty speed list dialog
David Mohr
noreply at xfce.org
Mon Jul 9 07:16:01 CEST 2012
Updating branch refs/heads/master
to 62a01000cf5ded08dd5741d577712853fd1c94fa (commit)
from de1e37fb2ad270172496eb792993c2cfd9345dbf (commit)
commit 62a01000cf5ded08dd5741d577712853fd1c94fa
Author: David Mohr <david at mcbf.net>
Date: Sun Jul 8 22:17:16 2012 -0600
Remove empty speed list dialog
xfburn/xfburn-device-box.c | 6 ++++++
xfburn/xfburn-preferences-dialog.c | 8 ++++++++
2 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/xfburn/xfburn-device-box.c b/xfburn/xfburn-device-box.c
index 5c41d36..e4fe6e3 100644
--- a/xfburn/xfburn-device-box.c
+++ b/xfburn/xfburn-device-box.c
@@ -109,7 +109,9 @@ static void fill_combo_mode (XfburnDeviceBox *box, XfburnDevice *device);
static void cb_volume_change_start (XfburnDeviceList *devlist, gboolean device_changed, XfburnDeviceBox *box);
static void cb_volume_change_end (XfburnDeviceList *devlist, gboolean device_changed, XfburnDevice *device, XfburnDeviceBox *box);
+#if 0
static void empty_speed_list_dialog (void);
+#endif
/* globals */
static GtkVBoxClass *parent_class = NULL;
@@ -371,6 +373,7 @@ xfburn_device_box_set_property (GObject *object, guint prop_id, const GValue *va
/* internals */
/*************/
+#if 0
static void
empty_speed_list_dialog (void)
{
@@ -418,6 +421,7 @@ empty_speed_list_dialog (void)
}
gtk_widget_destroy (GTK_WIDGET (dialog));
}
+#endif
static void
fill_combo_speed (XfburnDeviceBox *box, XfburnDevice *device)
@@ -441,7 +445,9 @@ fill_combo_speed (XfburnDeviceBox *box, XfburnDevice *device)
GtkTreeIter iter;
gchar *str;
+#if 0
empty_speed_list_dialog ();
+#endif
str = _("default");
gtk_list_store_append (GTK_LIST_STORE (model), &iter);
diff --git a/xfburn/xfburn-preferences-dialog.c b/xfburn/xfburn-preferences-dialog.c
index dee0002..c582402 100644
--- a/xfburn/xfburn-preferences-dialog.c
+++ b/xfburn/xfburn-preferences-dialog.c
@@ -44,7 +44,9 @@ typedef struct
GtkWidget *treeview_devices;
GtkWidget *button_scan;
+#if 0
GtkWidget *check_empty_speed_list;
+#endif
GtkWidget *scale_fifo;
} XfburnPreferencesDialogPrivate;
@@ -318,9 +320,11 @@ xfburn_preferences_dialog_init (XfburnPreferencesDialog * obj)
/* below the device list */
+#if 0
priv->check_empty_speed_list = gtk_check_button_new_with_mnemonic (_("Show warning on _empty speed list"));
gtk_box_pack_start (GTK_BOX (vbox2), priv->check_empty_speed_list, FALSE, FALSE, BORDER);
gtk_widget_show (priv->check_empty_speed_list);
+#endif
/* fifo */
vbox3 = gtk_vbox_new (FALSE, 0);
@@ -370,8 +374,10 @@ xfburn_preferences_dialog_load_settings (XfburnPreferencesDialog * dialog)
xfburn_settings_get_boolean ("show-hidden-files", FALSE));
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->check_show_human_readable),
xfburn_settings_get_boolean ("human-readable-units", TRUE));
+#if 0
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->check_empty_speed_list),
xfburn_settings_get_boolean ("show-empty-speed-list-notice", TRUE));
+#endif
gtk_range_set_value (GTK_RANGE (priv->scale_fifo),
(double) xfburn_settings_get_int ("fifo-size", FIFO_DEFAULT_SIZE));
}
@@ -392,8 +398,10 @@ xfburn_preferences_dialog_save_settings (XfburnPreferencesDialog *dialog)
gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->check_show_hidden)));
xfburn_settings_set_boolean ("human-readable-units",
gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->check_show_human_readable)));
+#if 0
xfburn_settings_set_boolean ("show-empty-speed-list-notice",
gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->check_empty_speed_list)));
+#endif
xfburn_settings_set_int ("fifo-size",
((((int) gtk_range_get_value (GTK_RANGE (priv->scale_fifo)) / 32) * 32))); /* this should round to multiples of 1024 */
}
More information about the Xfce4-commits
mailing list