gnome-commander r2531 - in branches/gcmd-1-3: . libgcmd src



Author: epiotr
Date: Tue Apr  7 18:34:19 2009
New Revision: 2531
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2531&view=rev

Log:
gcc warnings cleanup

Modified:
   branches/gcmd-1-3/ChangeLog
   branches/gcmd-1-3/libgcmd/libgcmd-widget-factory.c
   branches/gcmd-1-3/libgcmd/libgcmd-widget-factory.h
   branches/gcmd-1-3/src/gnome-cmd-delete-dialog.cc
   branches/gcmd-1-3/src/gnome-cmd-list-popmenu.cc
   branches/gcmd-1-3/src/gnome-cmd-rename-dialog.cc
   branches/gcmd-1-3/src/gnome-cmd-xfer.cc

Modified: branches/gcmd-1-3/libgcmd/libgcmd-widget-factory.c
==============================================================================
--- branches/gcmd-1-3/libgcmd/libgcmd-widget-factory.c	(original)
+++ branches/gcmd-1-3/libgcmd/libgcmd-widget-factory.c	Tue Apr  7 18:34:19 2009
@@ -230,7 +230,7 @@
 
 
 GtkWidget *
-create_named_button_with_data (GtkWidget *parent, gchar *label, gchar *name, GtkSignalFunc func, gpointer data)
+create_named_button_with_data (GtkWidget *parent, const gchar *label, const gchar *name, GtkSignalFunc func, gpointer data)
 {
     guint key;
     GtkAccelGroup *accel_group = gtk_accel_group_new ();

Modified: branches/gcmd-1-3/libgcmd/libgcmd-widget-factory.h
==============================================================================
--- branches/gcmd-1-3/libgcmd/libgcmd-widget-factory.h	(original)
+++ branches/gcmd-1-3/libgcmd/libgcmd-widget-factory.h	Tue Apr  7 18:34:19 2009
@@ -59,7 +59,7 @@
 
 GtkWidget *create_button_with_data (GtkWidget *parent, const gchar *label, GtkSignalFunc func, gpointer data);
 
-GtkWidget *create_named_button_with_data (GtkWidget *parent, gchar *label, gchar *name, GtkSignalFunc func, gpointer data);
+GtkWidget *create_named_button_with_data (GtkWidget *parent, const gchar *label, const gchar *name, GtkSignalFunc func, gpointer data);
 
 GtkWidget *create_stock_button (GtkWidget *parent, gconstpointer stock, GtkSignalFunc func);
 

Modified: branches/gcmd-1-3/src/gnome-cmd-delete-dialog.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-delete-dialog.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-delete-dialog.cc	Tue Apr  7 18:34:19 2009
@@ -177,11 +177,11 @@
 
     if (uri_list)
     {
-        GnomeVFSResult result = gnome_vfs_xfer_delete_list (uri_list,
-                                                            GNOME_VFS_XFER_ERROR_MODE_QUERY,
-                                                            GNOME_VFS_XFER_DEFAULT,
-                                                            (GnomeVFSXferProgressCallback) delete_progress_callback,
-                                                            data);
+        gnome_vfs_xfer_delete_list (uri_list,
+                                    GNOME_VFS_XFER_ERROR_MODE_QUERY,
+                                    GNOME_VFS_XFER_DEFAULT,
+                                    (GnomeVFSXferProgressCallback) delete_progress_callback,
+                                    data);
 
         g_list_foreach (uri_list, (GFunc) gnome_vfs_uri_unref, NULL);
         g_list_free (uri_list);

Modified: branches/gcmd-1-3/src/gnome-cmd-list-popmenu.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-list-popmenu.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-list-popmenu.cc	Tue Apr  7 18:34:19 2009
@@ -66,8 +66,6 @@
 
 static void destroy (GtkObject *object)
 {
-    GnomeCmdListPopmenu *menu = GNOME_CMD_LIST_POPMENU (object);
-
     if (GTK_OBJECT_CLASS (parent_class)->destroy)
         (*GTK_OBJECT_CLASS (parent_class)->destroy) (object);
 }

Modified: branches/gcmd-1-3/src/gnome-cmd-rename-dialog.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-rename-dialog.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-rename-dialog.cc	Tue Apr  7 18:34:19 2009
@@ -159,7 +159,6 @@
     gtk_widget_set_style (GTK_WIDGET (dialog->priv->textbox), list_style);
 
     gchar *fname = get_utf8 (gnome_cmd_file_get_name (finfo));
-    gint end_selection = -1;
 
     gtk_entry_set_text (dialog->priv->textbox, fname);
 

Modified: branches/gcmd-1-3/src/gnome-cmd-xfer.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-xfer.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-xfer.cc	Tue Apr  7 18:34:19 2009
@@ -428,17 +428,17 @@
     gtk_widget_show (GTK_WIDGET (data->win));
 
     //  start the transfer
-    GnomeVFSResult result = gnome_vfs_async_xfer (&data->handle,
-                                                  data->src_uri_list,
-                                                  data->dest_uri_list,
-                                                  xferOptions,
-                                                  GNOME_VFS_XFER_ERROR_MODE_QUERY,
-                                                  xferOverwriteMode,
-                                                  XFER_PRIORITY,
-                                                  (GnomeVFSAsyncXferProgressCallback) async_xfer_callback,
-                                                  data,
-                                                  xfer_callback,
-                                                  data);
+    gnome_vfs_async_xfer (&data->handle,
+                          data->src_uri_list,
+                          data->dest_uri_list,
+                          xferOptions,
+                          GNOME_VFS_XFER_ERROR_MODE_QUERY,
+                          xferOverwriteMode,
+                          XFER_PRIORITY,
+                          (GnomeVFSAsyncXferProgressCallback) async_xfer_callback,
+                          data,
+                          xfer_callback,
+                          data);
 
     g_timeout_add (gnome_cmd_data.gui_update_rate, (GSourceFunc) update_xfer_gui_func, data);
 }



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