nautilus r13621 - in trunk: . libnautilus-private src
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: nautilus r13621 - in trunk: . libnautilus-private src
- Date: Fri, 18 Jan 2008 13:34:41 +0000 (GMT)
Author: alexl
Date: Fri Jan 18 13:34:41 2008
New Revision: 13621
URL: http://svn.gnome.org/viewvc/nautilus?rev=13621&view=rev
Log:
2008-01-18 Alexander Larsson <alexl redhat com>
* libnautilus-private/nautilus-autorun.c:
* src/nautilus-autorun-software.c:
Fix coding style
Modified:
trunk/ChangeLog
trunk/libnautilus-private/nautilus-autorun.c
trunk/src/nautilus-autorun-software.c
Modified: trunk/libnautilus-private/nautilus-autorun.c
==============================================================================
--- trunk/libnautilus-private/nautilus-autorun.c (original)
+++ trunk/libnautilus-private/nautilus-autorun.c Fri Jan 18 13:34:41 2008
@@ -191,8 +191,9 @@
nautilus_autorun_combobox_data_destroy (NautilusAutorunComboBoxData *data)
{
/* signal handler may be automatically disconnected by destroying the widget */
- if (g_signal_handler_is_connected (G_OBJECT (data->combo_box), data->changed_signal_id))
+ if (g_signal_handler_is_connected (G_OBJECT (data->combo_box), data->changed_signal_id)) {
g_signal_handler_disconnect (G_OBJECT (data->combo_box), data->changed_signal_id);
+ }
g_free (data);
}
Modified: trunk/src/nautilus-autorun-software.c
==============================================================================
--- trunk/src/nautilus-autorun-software.c (original)
+++ trunk/src/nautilus-autorun-software.c Fri Jan 18 13:34:41 2008
@@ -80,8 +80,9 @@
NULL);
if (file_info != NULL) {
if (must_be_executable) {
- if (g_file_info_get_attribute_boolean (file_info, G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE))
+ if (g_file_info_get_attribute_boolean (file_info, G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE)) {
ret = TRUE;
+ }
} else {
ret = TRUE;
}
@@ -128,8 +129,9 @@
/* TODO */
}
- if (program_to_spawn != NULL)
+ if (program_to_spawn != NULL) {
path_to_spawn = g_file_get_path (program_to_spawn);
+ }
cwd_for_program = g_file_get_path (root);
@@ -142,8 +144,9 @@
}
g_warning ("Cannot find path for program to spawn");
- if (program_to_spawn != NULL)
+ if (program_to_spawn != NULL) {
g_object_unref (program_to_spawn);
+ }
g_free (path_to_spawn);
g_free (cwd_for_program);
}
@@ -231,21 +234,25 @@
LIBGNOMEUI_MODULE, argc, argv,
NULL, NULL);
- if (argc != 2)
+ if (argc != 2) {
goto out;
+ }
/* instantiate monitor so we get the "unmounted" signal properly */
monitor = g_volume_monitor_get ();
- if (monitor == NULL)
+ if (monitor == NULL) {
goto out;
+ }
file = g_file_new_for_commandline_arg (argv[1]);
- if (file == NULL)
+ if (file == NULL) {
goto out;
+ }
mount = g_file_find_enclosing_mount (file, NULL, NULL);
- if (mount == NULL)
+ if (mount == NULL) {
goto out;
+ }
present_autorun_for_software_dialog (mount);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]