gnome-commander r2384 - in trunk: plugins/fileroller po src
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r2384 - in trunk: plugins/fileroller po src
- Date: Mon, 5 Jan 2009 18:20:46 +0000 (UTC)
Author: epiotr
Date: Mon Jan 5 18:20:46 2009
New Revision: 2384
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2384&view=rev
Log:
Code cleanup
Modified:
trunk/plugins/fileroller/file-roller-plugin.c
trunk/plugins/fileroller/file-roller-plugin.h
trunk/po/ChangeLog
trunk/src/gnome-cmd-file.cc
Modified: trunk/plugins/fileroller/file-roller-plugin.c
==============================================================================
--- trunk/plugins/fileroller/file-roller-plugin.c (original)
+++ trunk/plugins/fileroller/file-roller-plugin.c Mon Jan 5 18:20:46 2009
@@ -122,8 +122,7 @@
}
-static void
-do_add_to_archive (const gchar *name, GnomeCmdState *state)
+static void do_add_to_archive (const gchar *name, GnomeCmdState *state)
{
gchar *t = g_strdup_printf ("--add-to=%s", name);
gchar *arg = g_shell_quote (t);
@@ -156,8 +155,7 @@
}
-static void
-on_add_to_archive (GtkMenuItem *item, FileRollerPlugin *plugin)
+static void on_add_to_archive (GtkMenuItem *item, FileRollerPlugin *plugin)
{
gint ret;
GtkWidget *dialog = NULL;
@@ -260,15 +258,13 @@
}
-static GtkWidget *
-create_main_menu (GnomeCmdPlugin *plugin, GnomeCmdState *state)
+static GtkWidget *create_main_menu (GnomeCmdPlugin *plugin, GnomeCmdState *state)
{
return NULL;
}
-static GList *
-create_popup_menu_items (GnomeCmdPlugin *plugin, GnomeCmdState *state)
+static GList *create_popup_menu_items (GnomeCmdPlugin *plugin, GnomeCmdState *state)
{
GList *items = NULL;
GtkWidget *item;
@@ -286,8 +282,7 @@
FILE_ROLLER_PLUGIN (plugin)->priv->state = state;
- item = create_menu_item (_("Create Archive..."),
- TRUE, GTK_SIGNAL_FUNC (on_add_to_archive), plugin);
+ item = create_menu_item (_("Create Archive..."), TRUE, GTK_SIGNAL_FUNC (on_add_to_archive), plugin);
items = g_list_append (items, item);
if (num_files == 1)
@@ -319,14 +314,12 @@
}
-static void
-update_main_menu_state (GnomeCmdPlugin *plugin, GnomeCmdState *state)
+static void update_main_menu_state (GnomeCmdPlugin *plugin, GnomeCmdState *state)
{
}
-static void
-on_configure_close (GtkButton *btn, FileRollerPlugin *plugin)
+static void on_configure_close (GtkButton *btn, FileRollerPlugin *plugin)
{
plugin->priv->default_ext = g_strdup (gtk_entry_get_text (
GTK_ENTRY (GTK_COMBO (plugin->priv->conf_combo)->entry)));
@@ -337,8 +330,7 @@
}
-static void
-configure (GnomeCmdPlugin *plugin)
+static void configure (GnomeCmdPlugin *plugin)
{
gint i;
GList *items = NULL;
@@ -386,8 +378,7 @@
* Gtk class implementation
*******************************/
-static void
-destroy (GtkObject *object)
+static void destroy (GtkObject *object)
{
FileRollerPlugin *plugin = FILE_ROLLER_PLUGIN (object);
@@ -399,8 +390,7 @@
}
-static void
-class_init (FileRollerPluginClass *klass)
+static void class_init (FileRollerPluginClass *klass)
{
GtkObjectClass *object_class = GTK_OBJECT_CLASS (klass);
GnomeCmdPluginClass *plugin_class = GNOME_CMD_PLUGIN_CLASS (klass);
@@ -416,8 +406,7 @@
}
-static void
-init (FileRollerPlugin *plugin)
+static void init (FileRollerPlugin *plugin)
{
plugin->priv = g_new (FileRollerPluginPrivate, 1);
@@ -429,8 +418,7 @@
* Public functions
***********************************/
-GtkType
-file_roller_plugin_get_type ()
+GtkType file_roller_plugin_get_type ()
{
static GtkType type = 0;
@@ -454,8 +442,7 @@
}
-GnomeCmdPlugin *
-file_roller_plugin_new ()
+GnomeCmdPlugin *file_roller_plugin_new ()
{
FileRollerPlugin *plugin = gtk_type_new (file_roller_plugin_get_type ());
Modified: trunk/plugins/fileroller/file-roller-plugin.h
==============================================================================
--- trunk/plugins/fileroller/file-roller-plugin.h (original)
+++ trunk/plugins/fileroller/file-roller-plugin.h Mon Jan 5 18:20:46 2009
@@ -48,11 +48,9 @@
};
-GtkType
-file_roller_plugin_get_type ();
+GtkType file_roller_plugin_get_type ();
-GnomeCmdPlugin *
-file_roller_plugin_new ();
+GnomeCmdPlugin *file_roller_plugin_new ();
G_END_DECLS
Modified: trunk/src/gnome-cmd-file.cc
==============================================================================
--- trunk/src/gnome-cmd-file.cc (original)
+++ trunk/src/gnome-cmd-file.cc Mon Jan 5 18:20:46 2009
@@ -172,6 +172,7 @@
return f;
}
+
GnomeCmdFile *gnome_cmd_file_new_from_local_path (const char *local_full_path)
{
g_return_val_if_fail (local_full_path != NULL, NULL);
@@ -190,7 +191,6 @@
}
-
void gnome_cmd_file_invalidate_metadata (GnomeCmdFile *f)
{
g_return_if_fail (f != NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]