gnome-commander r2195 - in trunk: libgcmd plugins/cvs plugins/fileroller plugins/test src
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r2195 - in trunk: libgcmd plugins/cvs plugins/fileroller plugins/test src
- Date: Wed, 15 Oct 2008 21:53:13 +0000 (UTC)
Author: epiotr
Date: Wed Oct 15 21:53:13 2008
New Revision: 2195
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2195&view=rev
Log:
Code cleanup
Modified:
trunk/libgcmd/gnome-cmd-dialog.c
trunk/libgcmd/gnome-cmd-dialog.h
trunk/libgcmd/gnome-cmd-file-info.c
trunk/libgcmd/gnome-cmd-file-info.h
trunk/libgcmd/gnome-cmd-plugin.c
trunk/libgcmd/gnome-cmd-plugin.h
trunk/libgcmd/gnome-cmd-string-dialog.c
trunk/libgcmd/gnome-cmd-string-dialog.h
trunk/plugins/cvs/interface.c
trunk/plugins/fileroller/file-roller-plugin.c
trunk/plugins/fileroller/file-roller-plugin.h
trunk/plugins/test/test-plugin.c
trunk/plugins/test/test-plugin.h
trunk/src/gnome-cmd-bookmark-dialog.cc
Modified: trunk/libgcmd/gnome-cmd-dialog.c
==============================================================================
--- trunk/libgcmd/gnome-cmd-dialog.c (original)
+++ trunk/libgcmd/gnome-cmd-dialog.c Wed Oct 15 21:53:13 2008
@@ -118,7 +118,7 @@
* Public functions
***********************************/
-GtkType gnome_cmd_dialog_get_type (void)
+GtkType gnome_cmd_dialog_get_type ()
{
static GtkType dlg_type = 0;
Modified: trunk/libgcmd/gnome-cmd-dialog.h
==============================================================================
--- trunk/libgcmd/gnome-cmd-dialog.h (original)
+++ trunk/libgcmd/gnome-cmd-dialog.h Wed Oct 15 21:53:13 2008
@@ -57,7 +57,7 @@
void gnome_cmd_dialog_setup (GnomeCmdDialog *dialog, const gchar *title);
-GtkType gnome_cmd_dialog_get_type (void);
+GtkType gnome_cmd_dialog_get_type ();
GtkWidget *gnome_cmd_dialog_add_button (GnomeCmdDialog *dialog, const gchar *stock_id, GtkSignalFunc on_click, gpointer data);
Modified: trunk/libgcmd/gnome-cmd-file-info.c
==============================================================================
--- trunk/libgcmd/gnome-cmd-file-info.c (original)
+++ trunk/libgcmd/gnome-cmd-file-info.c Wed Oct 15 21:53:13 2008
@@ -79,7 +79,7 @@
***********************************/
GtkType
-gnome_cmd_file_info_get_type (void)
+gnome_cmd_file_info_get_type ()
{
static GtkType type = 0;
Modified: trunk/libgcmd/gnome-cmd-file-info.h
==============================================================================
--- trunk/libgcmd/gnome-cmd-file-info.h (original)
+++ trunk/libgcmd/gnome-cmd-file-info.h Wed Oct 15 21:53:13 2008
@@ -48,7 +48,7 @@
};
-GtkType gnome_cmd_file_info_get_type (void);
+GtkType gnome_cmd_file_info_get_type ();
void gnome_cmd_file_info_setup (GnomeCmdFileInfo *finfo, GnomeVFSURI *uri, GnomeVFSFileInfo *info);
Modified: trunk/libgcmd/gnome-cmd-plugin.c
==============================================================================
--- trunk/libgcmd/gnome-cmd-plugin.c (original)
+++ trunk/libgcmd/gnome-cmd-plugin.c Wed Oct 15 21:53:13 2008
@@ -74,7 +74,7 @@
***********************************/
GtkType
-gnome_cmd_plugin_get_type (void)
+gnome_cmd_plugin_get_type ()
{
static GtkType type = 0;
Modified: trunk/libgcmd/gnome-cmd-plugin.h
==============================================================================
--- trunk/libgcmd/gnome-cmd-plugin.h (original)
+++ trunk/libgcmd/gnome-cmd-plugin.h Wed Oct 15 21:53:13 2008
@@ -54,7 +54,7 @@
};
-GtkType gnome_cmd_plugin_get_type (void);
+GtkType gnome_cmd_plugin_get_type ();
GtkWidget *gnome_cmd_plugin_create_main_menu (GnomeCmdPlugin *plugin, GnomeCmdState *state);
Modified: trunk/libgcmd/gnome-cmd-string-dialog.c
==============================================================================
--- trunk/libgcmd/gnome-cmd-string-dialog.c (original)
+++ trunk/libgcmd/gnome-cmd-string-dialog.c Wed Oct 15 21:53:13 2008
@@ -159,7 +159,7 @@
***********************************/
GtkType
-gnome_cmd_string_dialog_get_type (void)
+gnome_cmd_string_dialog_get_type ()
{
static GtkType dlg_type = 0;
Modified: trunk/libgcmd/gnome-cmd-string-dialog.h
==============================================================================
--- trunk/libgcmd/gnome-cmd-string-dialog.h (original)
+++ trunk/libgcmd/gnome-cmd-string-dialog.h Wed Oct 15 21:53:13 2008
@@ -92,7 +92,7 @@
GnomeCmdStringDialogCallback ok_cb,
gpointer user_data);
-GtkType gnome_cmd_string_dialog_get_type (void);
+GtkType gnome_cmd_string_dialog_get_type ();
void gnome_cmd_string_dialog_set_hidden (GnomeCmdStringDialog *dialog, gint row, gboolean hidden);
Modified: trunk/plugins/cvs/interface.c
==============================================================================
--- trunk/plugins/cvs/interface.c (original)
+++ trunk/plugins/cvs/interface.c Wed Oct 15 21:53:13 2008
@@ -523,7 +523,7 @@
gtk_clist_set_row_data (GTK_CLIST (rev_list), row, rev);
}
- gtk_signal_connect (GTK_OBJECT (rev_list), "select_row",
+ gtk_signal_connect (GTK_OBJECT (rev_list), "select-row",
GTK_SIGNAL_FUNC (on_rev_list_select_row), log_history);
gtk_clist_select_row (GTK_CLIST (rev_list), 0, 0);
Modified: trunk/plugins/fileroller/file-roller-plugin.c
==============================================================================
--- trunk/plugins/fileroller/file-roller-plugin.c (original)
+++ trunk/plugins/fileroller/file-roller-plugin.c Wed Oct 15 21:53:13 2008
@@ -430,7 +430,7 @@
***********************************/
GtkType
-file_roller_plugin_get_type (void)
+file_roller_plugin_get_type ()
{
static GtkType type = 0;
@@ -455,7 +455,7 @@
GnomeCmdPlugin *
-file_roller_plugin_new (void)
+file_roller_plugin_new ()
{
FileRollerPlugin *plugin = gtk_type_new (file_roller_plugin_get_type ());
@@ -463,13 +463,13 @@
}
-GnomeCmdPlugin *create_plugin (void)
+GnomeCmdPlugin *create_plugin ()
{
return file_roller_plugin_new ();
}
-PluginInfo *get_plugin_info (void)
+PluginInfo *get_plugin_info ()
{
if (!plugin_nfo.authors)
{
Modified: trunk/plugins/fileroller/file-roller-plugin.h
==============================================================================
--- trunk/plugins/fileroller/file-roller-plugin.h (original)
+++ trunk/plugins/fileroller/file-roller-plugin.h Wed Oct 15 21:53:13 2008
@@ -49,10 +49,10 @@
GtkType
-file_roller_plugin_get_type (void);
+file_roller_plugin_get_type ();
GnomeCmdPlugin *
-file_roller_plugin_new (void);
+file_roller_plugin_new ();
G_END_DECLS
Modified: trunk/plugins/test/test-plugin.c
==============================================================================
--- trunk/plugins/test/test-plugin.c (original)
+++ trunk/plugins/test/test-plugin.c Wed Oct 15 21:53:13 2008
@@ -52,15 +52,13 @@
static GnomeCmdPluginClass *parent_class = NULL;
-static void
-on_dummy (GtkMenuItem *item, gpointer data)
+static void on_dummy (GtkMenuItem *item, gpointer data)
{
gnome_ok_dialog ("Test plugin dummy operation");
}
-static GtkWidget *
-create_menu_item (const gchar *name, gboolean show_pixmap,
+static GtkWidget *create_menu_item (const gchar *name, gboolean show_pixmap,
GtkSignalFunc callback, gpointer data)
{
GtkWidget *item, *label;
@@ -99,8 +97,7 @@
}
-static GtkWidget *
-create_main_menu (GnomeCmdPlugin *plugin, GnomeCmdState *state)
+static GtkWidget *create_main_menu (GnomeCmdPlugin *plugin, GnomeCmdState *state)
{
GtkWidget *item, *child;
GtkMenu *submenu;
@@ -117,11 +114,9 @@
}
-static GList *
-create_popup_menu_items (GnomeCmdPlugin *plugin, GnomeCmdState *state)
+static GList *create_popup_menu_items (GnomeCmdPlugin *plugin, GnomeCmdState *state)
{
- GtkWidget *item = create_menu_item (
- "Test plugin dummy operation", TRUE, GTK_SIGNAL_FUNC (on_dummy), state);
+ GtkWidget *item = create_menu_item ("Test plugin dummy operation", TRUE, GTK_SIGNAL_FUNC (on_dummy), state);
return g_list_append (NULL, item);
}
@@ -155,8 +150,7 @@
}
-static void
-class_init (TestPluginClass *klass)
+static void class_init (TestPluginClass *klass)
{
GtkObjectClass *object_class;
GnomeCmdPluginClass *plugin_class;
@@ -174,8 +168,7 @@
}
-static void
-init (TestPlugin *plugin)
+static void init (TestPlugin *plugin)
{
plugin->priv = g_new (TestPluginPrivate, 1);
}
@@ -187,7 +180,7 @@
***********************************/
GtkType
-test_plugin_get_type (void)
+test_plugin_get_type ()
{
static GtkType type = 0;
@@ -211,8 +204,7 @@
}
-GnomeCmdPlugin *
-test_plugin_new (void)
+GnomeCmdPlugin *test_plugin_new ()
{
TestPlugin *plugin;
@@ -222,13 +214,13 @@
}
-GnomeCmdPlugin *create_plugin (void)
+GnomeCmdPlugin *create_plugin ()
{
return test_plugin_new ();
}
-PluginInfo *get_plugin_info (void)
+PluginInfo *get_plugin_info ()
{
if (!plugin_nfo.authors)
{
Modified: trunk/plugins/test/test-plugin.h
==============================================================================
--- trunk/plugins/test/test-plugin.h (original)
+++ trunk/plugins/test/test-plugin.h Wed Oct 15 21:53:13 2008
@@ -49,10 +49,10 @@
GtkType
-test_plugin_get_type (void);
+test_plugin_get_type ();
GnomeCmdPlugin *
-test_plugin_new (void);
+test_plugin_new ();
G_END_DECLS
Modified: trunk/src/gnome-cmd-bookmark-dialog.cc
==============================================================================
--- trunk/src/gnome-cmd-bookmark-dialog.cc (original)
+++ trunk/src/gnome-cmd-bookmark-dialog.cc Wed Oct 15 21:53:13 2008
@@ -499,7 +499,7 @@
gtk_signal_connect (GTK_OBJECT (dialog), "key-press-event",
GTK_SIGNAL_FUNC (on_dialog_keypress), dialog);
- gtk_signal_connect_after (GTK_OBJECT (in_dialog->priv->dir_list), "scroll_vertical",
+ gtk_signal_connect_after (GTK_OBJECT (in_dialog->priv->dir_list), "scroll-vertical",
GTK_SIGNAL_FUNC (on_scroll_vertical), NULL);
gtk_signal_connect (GTK_OBJECT (in_dialog->priv->dir_list), "unselect-row",
GTK_SIGNAL_FUNC (on_dir_unselected), dialog);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]