gnome-commander r2530 - in trunk: . libgcmd src
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r2530 - in trunk: . libgcmd src
- Date: Tue, 7 Apr 2009 18:33:59 +0000 (UTC)
Author: epiotr
Date: Tue Apr 7 18:33:59 2009
New Revision: 2530
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2530&view=rev
Log:
gcc warnings cleanup
Modified:
trunk/ChangeLog
trunk/libgcmd/libgcmd-widget-factory.c
trunk/libgcmd/libgcmd-widget-factory.h
trunk/src/gnome-cmd-delete-dialog.cc
trunk/src/gnome-cmd-list-popmenu.cc
trunk/src/gnome-cmd-rename-dialog.cc
trunk/src/gnome-cmd-xfer.cc
Modified: trunk/libgcmd/libgcmd-widget-factory.c
==============================================================================
--- trunk/libgcmd/libgcmd-widget-factory.c (original)
+++ trunk/libgcmd/libgcmd-widget-factory.c Tue Apr 7 18:33:59 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: trunk/libgcmd/libgcmd-widget-factory.h
==============================================================================
--- trunk/libgcmd/libgcmd-widget-factory.h (original)
+++ trunk/libgcmd/libgcmd-widget-factory.h Tue Apr 7 18:33:59 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: trunk/src/gnome-cmd-delete-dialog.cc
==============================================================================
--- trunk/src/gnome-cmd-delete-dialog.cc (original)
+++ trunk/src/gnome-cmd-delete-dialog.cc Tue Apr 7 18:33:59 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: trunk/src/gnome-cmd-list-popmenu.cc
==============================================================================
--- trunk/src/gnome-cmd-list-popmenu.cc (original)
+++ trunk/src/gnome-cmd-list-popmenu.cc Tue Apr 7 18:33:59 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: trunk/src/gnome-cmd-rename-dialog.cc
==============================================================================
--- trunk/src/gnome-cmd-rename-dialog.cc (original)
+++ trunk/src/gnome-cmd-rename-dialog.cc Tue Apr 7 18:33:59 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: trunk/src/gnome-cmd-xfer.cc
==============================================================================
--- trunk/src/gnome-cmd-xfer.cc (original)
+++ trunk/src/gnome-cmd-xfer.cc Tue Apr 7 18:33:59 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]