gnome-commander r2115 - in trunk: . libgcmd src src/tags
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r2115 - in trunk: . libgcmd src src/tags
- Date: Thu, 25 Sep 2008 21:03:48 +0000 (UTC)
Author: epiotr
Date: Thu Sep 25 21:03:48 2008
New Revision: 2115
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2115&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-file-list.cc
trunk/src/gnome-cmd-file-selector.cc
trunk/src/gnome-cmd-main-menu.cc
trunk/src/gnome-cmd-options-dialog.cc
trunk/src/tags/gnome-cmd-tags-doc.cc
Modified: trunk/libgcmd/libgcmd-widget-factory.c
==============================================================================
--- trunk/libgcmd/libgcmd-widget-factory.c (original)
+++ trunk/libgcmd/libgcmd-widget-factory.c Thu Sep 25 21:03:48 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: trunk/libgcmd/libgcmd-widget-factory.h
==============================================================================
--- trunk/libgcmd/libgcmd-widget-factory.h (original)
+++ trunk/libgcmd/libgcmd-widget-factory.h Thu Sep 25 21:03:48 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: trunk/src/gnome-cmd-file-list.cc
==============================================================================
--- trunk/src/gnome-cmd-file-list.cc (original)
+++ trunk/src/gnome-cmd-file-list.cc Thu Sep 25 21:03:48 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: trunk/src/gnome-cmd-file-selector.cc
==============================================================================
--- trunk/src/gnome-cmd-file-selector.cc (original)
+++ trunk/src/gnome-cmd-file-selector.cc Thu Sep 25 21:03:48 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: trunk/src/gnome-cmd-main-menu.cc
==============================================================================
--- trunk/src/gnome-cmd-main-menu.cc (original)
+++ trunk/src/gnome-cmd-main-menu.cc Thu Sep 25 21:03:48 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: trunk/src/gnome-cmd-options-dialog.cc
==============================================================================
--- trunk/src/gnome-cmd-options-dialog.cc (original)
+++ trunk/src/gnome-cmd-options-dialog.cc Thu Sep 25 21:03:48 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: trunk/src/tags/gnome-cmd-tags-doc.cc
==============================================================================
--- trunk/src/tags/gnome-cmd-tags-doc.cc (original)
+++ trunk/src/tags/gnome-cmd-tags-doc.cc Thu Sep 25 21:03:48 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]