[Xfce4-commits] [bindings/thunarx-python] 01/01: Remove more tabs
noreply at xfce.org
noreply at xfce.org
Sat Dec 23 03:17:15 CET 2017
This is an automated email from the git hooks/post-receive script.
a d a m p l u m b p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository bindings/thunarx-python.
commit 8eec603dcf91e1d9cbd41525b60a3997e900b0dd
Author: Adam Plumb <adamplumb at gmail.com>
Date: Fri Dec 22 21:17:02 2017 -0500
Remove more tabs
---
src/thunarx-python-object.c | 12 +++++-----
src/thunarx-python.c | 58 ++++++++++++++++++++++-----------------------
2 files changed, 35 insertions(+), 35 deletions(-)
diff --git a/src/thunarx-python-object.c b/src/thunarx-python-object.c
index 4d561c9..581ecfc 100644
--- a/src/thunarx-python-object.c
+++ b/src/thunarx-python-object.c
@@ -173,7 +173,7 @@ thunarx_python_object_get_file_menu_items (ThunarxMenuProvider *provider,
beach:
if (PyErr_Occurred()) {
- PyErr_Print();
+ PyErr_Print();
}
Py_XDECREF(py_ret);
@@ -209,7 +209,7 @@ thunarx_python_object_get_folder_menu_items (ThunarxMenuProvider *provider,
beach:
if (PyErr_Occurred()) {
- PyErr_Print();
+ PyErr_Print();
}
Py_XDECREF(py_ret);
@@ -250,7 +250,7 @@ thunarx_python_object_get_dnd_menu_items (ThunarxMenuProvider *provider,
beach:
if (PyErr_Occurred()) {
- PyErr_Print();
+ PyErr_Print();
}
Py_XDECREF(py_ret);
@@ -295,7 +295,7 @@ thunarx_python_object_get_property_pages (ThunarxPropertyPageProvider *provider,
beach:
if (PyErr_Occurred()) {
- PyErr_Print();
+ PyErr_Print();
}
Py_XDECREF(py_ret);
@@ -327,7 +327,7 @@ thunarx_python_object_get_renamers (ThunarxRenamerProvider *provider) {
beach:
if (PyErr_Occurred()) {
- PyErr_Print();
+ PyErr_Print();
}
Py_XDECREF(py_ret);
@@ -369,7 +369,7 @@ thunarx_python_object_get_preferences_menu_items (ThunarxPreferencesProvider *pr
beach:
if (PyErr_Occurred()) {
- PyErr_Print();
+ PyErr_Print();
}
Py_XDECREF(py_ret);
diff --git a/src/thunarx-python.c b/src/thunarx-python.c
index 16a9fb7..62a4415 100644
--- a/src/thunarx-python.c
+++ b/src/thunarx-python.c
@@ -174,9 +174,9 @@ thunarx_python_load_file (ThunarxProviderPlugin *plugin,
continue;
if (PyObject_IsSubclass(value, (PyObject*)&PyThunarxMenuProvider_Type) ||
- PyObject_IsSubclass(value, (PyObject*)&PyThunarxPropertyPageProvider_Type) ||
- PyObject_IsSubclass(value, (PyObject*)&PyThunarxPreferencesProvider_Type) ||
- PyObject_IsSubclass(value, (PyObject*)&PyThunarxRenamerProvider_Type)) {
+ PyObject_IsSubclass(value, (PyObject*)&PyThunarxPropertyPageProvider_Type) ||
+ PyObject_IsSubclass(value, (PyObject*)&PyThunarxPreferencesProvider_Type) ||
+ PyObject_IsSubclass(value, (PyObject*)&PyThunarxRenamerProvider_Type)) {
new_type = thunarx_python_object_get_type(plugin, value);
g_array_append_val(all_types, new_type);
}
@@ -237,38 +237,38 @@ thunarx_python_check_all_directories(ThunarxProviderPlugin *plugin) {
GList *dirs = NULL;
- // Check ~/.local/share first
+ // Check ~/.local/share first
dirs = g_list_append(dirs, g_build_filename(g_get_user_data_dir(),
"thunarx-python", "extensions", NULL));
- // If thunar is built in a non-standard prefix
- // Check that' prefix's DATADIR
+ // If thunar is built in a non-standard prefix
+ // Check that' prefix's DATADIR
gchar *prefix_extension_dir = DATADIR "/thunarx-python/extensions";
- dirs = g_list_append(dirs, prefix_extension_dir);
+ dirs = g_list_append(dirs, prefix_extension_dir);
- // Check all system data dirs
+ // Check all system data dirs
const gchar *const *temp = g_get_system_data_dirs();
while (*temp != NULL) {
- gchar *dir = g_build_filename(*temp,
- "thunarx-python", "extensions", NULL);
- if (dir != prefix_extension_dir) {
- dirs = g_list_append(dirs, dir);
- }
-
- temp++;
- }
-
- // Finally, check the old thunarx-python <0.3.0 extension dir
- dirs = g_list_append(dirs, THUNARX_EXTENSION_DIR "/python");
-
- dirs = g_list_first(dirs);
- while (dirs != NULL) {
- gchar *dir = dirs->data;
- thunarx_python_load_dir(plugin, dir);
- dirs = dirs->next;
- }
-
- g_list_free(dirs);
+ gchar *dir = g_build_filename(*temp,
+ "thunarx-python", "extensions", NULL);
+ if (dir != prefix_extension_dir) {
+ dirs = g_list_append(dirs, dir);
+ }
+
+ temp++;
+ }
+
+ // Finally, check the old thunarx-python <0.3.0 extension dir
+ dirs = g_list_append(dirs, THUNARX_EXTENSION_DIR "/python");
+
+ dirs = g_list_first(dirs);
+ while (dirs != NULL) {
+ gchar *dir = dirs->data;
+ thunarx_python_load_dir(plugin, dir);
+ dirs = dirs->next;
+ }
+
+ g_list_free(dirs);
}
G_MODULE_EXPORT void
@@ -297,7 +297,7 @@ thunar_extension_initialize (ThunarxProviderPlugin *plugin) {
thunarx_provider_plugin_set_resident (plugin, TRUE);
- thunarx_python_check_all_directories(plugin);
+ thunarx_python_check_all_directories(plugin);
}
G_MODULE_EXPORT void
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list