[gthumb] changed spaces into tabs
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] changed spaces into tabs
- Date: Fri, 14 May 2010 11:29:32 +0000 (UTC)
commit f440d133870c73b87a6961d8f68a9e58ea273367
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri May 14 13:09:38 2010 +0200
changed spaces into tabs
extensions/rename_series/dlg-rename-series.c | 44 ++++++++++++-------------
extensions/rename_series/preferences.h | 2 +-
2 files changed, 22 insertions(+), 24 deletions(-)
---
diff --git a/extensions/rename_series/dlg-rename-series.c b/extensions/rename_series/dlg-rename-series.c
index 5abe0f7..5faa83e 100644
--- a/extensions/rename_series/dlg-rename-series.c
+++ b/extensions/rename_series/dlg-rename-series.c
@@ -91,7 +91,7 @@ static void
ok_clicked_cb (GtkWidget *widget,
DialogData *data)
{
- GtkTreeIter iter;
+ GtkTreeIter iter;
GList *old_files;
GList *new_files;
GList *scan1;
@@ -103,24 +103,22 @@ ok_clicked_cb (GtkWidget *widget,
if (data->file_list->next != NULL)
eel_gconf_set_string (PREF_RENAME_SERIES_TEMPLATE, gtk_entry_get_text (GTK_ENTRY (GET_WIDGET ("template_entry"))));
- eel_gconf_set_integer (PREF_RENAME_SERIES_START_AT, gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (GET_WIDGET ("start_at_spinbutton"))));
-
- if (gtk_combo_box_get_active_iter (GTK_COMBO_BOX (data->sort_combobox), &iter)) {
- GthFileDataSort *sort_type;
-
- gtk_tree_model_get (GTK_TREE_MODEL (data->sort_model),
- &iter,
- SORT_DATA_COLUMN, &sort_type,
- -1);
+ eel_gconf_set_integer (PREF_RENAME_SERIES_START_AT, gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (GET_WIDGET ("start_at_spinbutton"))));
- eel_gconf_set_string (PREF_RENAME_SERIES_SORT_BY, sort_type->name);
- }
+ if (gtk_combo_box_get_active_iter (GTK_COMBO_BOX (data->sort_combobox), &iter)) {
+ GthFileDataSort *sort_type;
- eel_gconf_set_boolean (PREF_RENAME_SERIES_REVERSE_ORDER, gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (GET_WIDGET ("reverse_order_checkbutton"))));
- eel_gconf_set_integer (PREF_RENAME_SERIES_CHANGE_CASE, gtk_combo_box_get_active (GTK_COMBO_BOX (data->change_case_combobox)));
+ gtk_tree_model_get (GTK_TREE_MODEL (data->sort_model),
+ &iter,
+ SORT_DATA_COLUMN, &sort_type,
+ -1);
+ eel_gconf_set_string (PREF_RENAME_SERIES_SORT_BY, sort_type->name);
+ }
+ eel_gconf_set_boolean (PREF_RENAME_SERIES_REVERSE_ORDER, gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (GET_WIDGET ("reverse_order_checkbutton"))));
+ eel_gconf_set_integer (PREF_RENAME_SERIES_CHANGE_CASE, gtk_combo_box_get_active (GTK_COMBO_BOX (data->change_case_combobox)));
- /* -- prepare and exec rename task -- */
+ /* -- prepare and exec rename task -- */
old_files = NULL;
new_files = NULL;
@@ -517,10 +515,10 @@ dlg_rename_series (GthBrowser *browser,
SORT_NAME_COLUMN, sort_type->display_name,
-1);
- if (strcmp (sort_by, sort_type->name) == 0) {
- gtk_combo_box_set_active_iter (GTK_COMBO_BOX (data->sort_combobox), &iter);
- found = TRUE;
- }
+ if (strcmp (sort_by, sort_type->name) == 0) {
+ gtk_combo_box_set_active_iter (GTK_COMBO_BOX (data->sort_combobox), &iter);
+ found = TRUE;
+ }
}
g_free (sort_by);
@@ -533,13 +531,13 @@ dlg_rename_series (GthBrowser *browser,
/* reverse order */
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (GET_WIDGET ("reverse_order_checkbutton")), eel_gconf_get_boolean (PREF_RENAME_SERIES_REVERSE_ORDER, DEFAULT_REVERSE_ORDER));
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (GET_WIDGET ("reverse_order_checkbutton")), eel_gconf_get_boolean (PREF_RENAME_SERIES_REVERSE_ORDER, DEFAULT_REVERSE_ORDER));
/* change case */
- change_case = eel_gconf_get_integer (PREF_RENAME_SERIES_CHANGE_CASE, DEFAULT_CHANGE_CASE);
- if ((change_case < GTH_CHANGE_CASE_NONE) || (change_case > GTH_CHANGE_CASE_UPPER))
- change_case = DEFAULT_CHANGE_CASE;
+ change_case = eel_gconf_get_integer (PREF_RENAME_SERIES_CHANGE_CASE, DEFAULT_CHANGE_CASE);
+ if ((change_case < GTH_CHANGE_CASE_NONE) || (change_case > GTH_CHANGE_CASE_UPPER))
+ change_case = DEFAULT_CHANGE_CASE;
data->change_case_combobox = _gtk_combo_box_new_with_texts (_("Keep original case"),
_("Convert to lower-case"),
diff --git a/extensions/rename_series/preferences.h b/extensions/rename_series/preferences.h
index 99741ea..4eb7197 100644
--- a/extensions/rename_series/preferences.h
+++ b/extensions/rename_series/preferences.h
@@ -3,7 +3,7 @@
/*
* GThumb
*
- * Copyright (C) 2009 Free Software Foundation, Inc.
+ * Copyright (C) 2010 Free Software Foundation, Inc.
*
* 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]