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



Author: epiotr
Date: Thu Sep 25 21:04:26 2008
New Revision: 2116
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2116&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-file-list.cc
   branches/gcmd-1-3/src/gnome-cmd-file-selector.cc
   branches/gcmd-1-3/src/gnome-cmd-main-menu.cc
   branches/gcmd-1-3/src/gnome-cmd-options-dialog.cc
   branches/gcmd-1-3/src/tags/gnome-cmd-tags-doc.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	Thu Sep 25 21:04:26 2008
@@ -251,7 +251,7 @@
 
 
 GtkWidget *
-create_button_with_data (GtkWidget *parent, gchar *label,
+create_button_with_data (GtkWidget *parent, const gchar *label,
                          GtkSignalFunc func, gpointer data)
 {
     return create_named_button_with_data (parent, label, "button", func, data);
@@ -308,7 +308,7 @@
 
 
 GtkWidget *
-create_entry (GtkWidget *parent, gchar *name, const gchar *value)
+create_entry (GtkWidget *parent, const gchar *name, const gchar *value)
 {
     GtkWidget *w = gtk_entry_new ();
     gtk_widget_ref (w);
@@ -337,7 +337,7 @@
 
 
 GtkWidget *
-create_radio (GtkWidget *parent, GSList *group, gchar *text, gchar *name)
+create_radio (GtkWidget *parent, GSList *group, const gchar *text, const gchar *name)
 {
     GtkWidget *btn;
 

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	Thu Sep 25 21:04:26 2008
@@ -56,7 +56,7 @@
 
 GtkWidget *create_named_button (GtkWidget *parent, gchar *label, gchar *name, GtkSignalFunc func);
 
-GtkWidget *create_button_with_data (GtkWidget *parent, gchar *label, GtkSignalFunc func, gpointer data);
+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);
 
@@ -68,11 +68,11 @@
 
 GtkWidget *create_named_stock_button_with_data (GtkWidget *parent, gconstpointer stock, gchar *name, GtkSignalFunc func, gpointer data);
 
-GtkWidget *create_entry (GtkWidget *parent, gchar *name, const gchar *value);
+GtkWidget *create_entry (GtkWidget *parent, const gchar *name, const gchar *value);
 
 GtkWidget *create_check (GtkWidget *parent, gchar *text, gchar *name);
 
-GtkWidget *create_radio (GtkWidget *parent, GSList *group, gchar *text, gchar *name);
+GtkWidget *create_radio (GtkWidget *parent, GSList *group, const gchar *text, const gchar *name);
 
 GtkWidget *create_spin (GtkWidget *parent, gchar *name, gint min, gint max, gint value);
 

Modified: branches/gcmd-1-3/src/gnome-cmd-file-list.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-file-list.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-file-list.cc	Thu Sep 25 21:04:26 2008
@@ -2021,8 +2021,6 @@
 {
     g_return_val_if_fail (event != NULL, FALSE);
 
-    gint num_files = size();
-
     if (state_is_alt (event->state))
     {
         switch (event->keyval)

Modified: branches/gcmd-1-3/src/gnome-cmd-file-selector.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-file-selector.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-file-selector.cc	Thu Sep 25 21:04:26 2008
@@ -1155,13 +1155,6 @@
 }
 
 
-static void on_root_btn_clicked (GtkButton *button, GnomeCmdFileSelector *fs)
-{
-    gnome_cmd_main_win_switch_fs (main_win, fs);
-    fs->goto_directory(G_DIR_SEPARATOR_S);
-}
-
-
 /*******************************
  * Gtk class implementation
  *******************************/

Modified: branches/gcmd-1-3/src/gnome-cmd-main-menu.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-main-menu.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-main-menu.cc	Thu Sep 25 21:04:26 2008
@@ -921,8 +921,8 @@
     GtkMenuShell *connections_menu = GTK_MENU_SHELL (GTK_MENU_ITEM (main_menu->priv->connections_menu)->submenu);
     GnomeCmdConList *con_list = gnome_cmd_con_list_get ();
     GList *all_cons = gnome_cmd_con_list_get_all (con_list);
-    GList *ftp_cons = gnome_cmd_con_list_get_all_ftp (con_list);
-    GList *dev_cons = gnome_cmd_con_list_get_all_dev (con_list);
+    // GList *ftp_cons = gnome_cmd_con_list_get_all_ftp (con_list);
+    // GList *dev_cons = gnome_cmd_con_list_get_all_dev (con_list);
 
     // Remove all old items
     g_list_foreach (main_menu->priv->connections_menuitems, (GFunc) gtk_widget_destroy, NULL);

Modified: branches/gcmd-1-3/src/gnome-cmd-options-dialog.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-options-dialog.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-options-dialog.cc	Thu Sep 25 21:04:26 2008
@@ -870,7 +870,7 @@
 {
     GtkWidget *frame, *hbox, *vbox, *cat, *cat_box;
     GtkWidget *table, *label, *entry;
-    GtkWidget *radio, *check;
+    GtkWidget *check;
 
     frame = create_tabframe (parent);
     hbox = create_tabhbox (parent);

Modified: branches/gcmd-1-3/src/tags/gnome-cmd-tags-doc.cc
==============================================================================
--- branches/gcmd-1-3/src/tags/gnome-cmd-tags-doc.cc	(original)
+++ branches/gcmd-1-3/src/tags/gnome-cmd-tags-doc.cc	Thu Sep 25 21:04:26 2008
@@ -387,7 +387,7 @@
     static struct
     {
         GnomeCmdTag tag;
-        gchar *name;
+        const gchar *name;
     }
     gsf_data[] = {
                     {TAG_DOC_BYTECOUNT, GSF_META_NAME_BYTE_COUNT},



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