[file-roller] declare some functions as static + indentation



commit 2c3a0dd8d4336b416ce3d6ba889f02ec0c77d592
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Oct 27 11:11:24 2013 +0100

    declare some functions as static + indentation

 src/fr-window.c |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index 929834e..29b6a6a 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -337,8 +337,8 @@ struct _FrWindowPrivate {
        GError           *drag_error;
        GList            *drag_file_list;        /* the list of files we are
                                                  * dragging*/
-       gboolean        dnd_extract_is_running;
-       gboolean        dnd_extract_finished_with_error;
+       gboolean          dnd_extract_is_running;
+       gboolean          dnd_extract_finished_with_error;
 
        /* progress dialog data */
 
@@ -4450,13 +4450,14 @@ fr_window_folder_tree_drag_data_get (GtkWidget        *widget,
        return TRUE;
 }
 
-typedef struct
-{
-  FrWindow *window;
-  GMainLoop *loop;
+
+typedef struct {
+       FrWindow *window;
+       GMainLoop *loop;
 } DndWaitInfo;
 
-gboolean
+
+static gboolean
 extraction_is_finished (gpointer *data)
 {
        DndWaitInfo *wait_info;
@@ -4465,7 +4466,8 @@ extraction_is_finished (gpointer *data)
        return wait_info->window->priv->dnd_extract_is_running;
 }
 
-void
+
+static void
 notify_extraction_finished (gpointer *data)
 {
        DndWaitInfo *wait_info;
@@ -4475,6 +4477,7 @@ notify_extraction_finished (gpointer *data)
                g_main_loop_quit (wait_info->loop);
 }
 
+
 gboolean
 fr_window_file_list_drag_data_get (FrWindow         *window,
                                   GdkDragContext   *context,
@@ -4580,6 +4583,7 @@ fr_window_file_list_drag_data_get (FrWindow         *window,
        g_object_unref (destination_folder);
 
        /* sends back the response */
+
        xds_response = ((window->priv->drag_error == NULL && !window->priv->dnd_extract_finished_with_error) 
? "S" : "E");
        gtk_selection_data_set (selection_data, gtk_selection_data_get_target (selection_data), 8, (guchar *) 
xds_response, 1);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]