diff options
author | infirit <[email protected]> | 2014-11-21 17:34:44 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-22 20:25:30 +0100 |
commit | 28c596789cf64a2df0005362b1595a73f0ab2567 (patch) | |
tree | 39c2a31a51072abfb3500c169ab4fbb7b6c7aa3c /src/fr-window.c | |
parent | e1cbfda259d2bfd2a87cda3519fd2cd69e509556 (diff) | |
download | engrampa-28c596789cf64a2df0005362b1595a73f0ab2567.tar.bz2 engrampa-28c596789cf64a2df0005362b1595a73f0ab2567.tar.xz |
fixed compiler warnings
Based on FR commit: 1becb98e4c8bc86feca13b54f991987c4eee3341
From: Paolo Bacchilega <[email protected]>
Diffstat (limited to 'src/fr-window.c')
-rw-r--r-- | src/fr-window.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/fr-window.c b/src/fr-window.c index 08ec8b2..b462077 100644 --- a/src/fr-window.c +++ b/src/fr-window.c @@ -722,8 +722,7 @@ fr_window_close (FrWindow *window) static void fr_window_class_init (FrWindowClass *class) { - GObjectClass *gobject_class; - GtkWidgetClass UNUSED_VARIABLE *widget_class; + GObjectClass *gobject_class; parent_class = g_type_class_peek_parent (class); @@ -739,8 +738,6 @@ fr_window_class_init (FrWindowClass *class) gobject_class = (GObjectClass*) class; gobject_class->finalize = fr_window_finalize; - - widget_class = (GtkWidgetClass*) class; } @@ -2336,6 +2333,8 @@ get_message_from_action (FrAction action) default: message = ""; break; + case FR_ACTION_NONE: + break; } return message; @@ -2347,7 +2346,7 @@ progress_dialog__set_last_action (FrWindow *window, FrAction action) { const char *title; - char *markup; + char *markup; window->priv->pd_last_action = action; title = get_message_from_action (window->priv->pd_last_action); @@ -2489,6 +2488,7 @@ create_the_progress_dialog (FrWindow *window) window->priv->progress_dialog = gtk_dialog_new_with_buttons ((window->priv->batch_mode ? window->priv->batch_title : NULL), parent, flags, + NULL, NULL); window->priv->pd_quit_button = gtk_dialog_add_button (GTK_DIALOG (window->priv->progress_dialog), GTK_STOCK_QUIT, DIALOG_RESPONSE_QUIT); @@ -5394,8 +5394,6 @@ fr_window_construct (FrWindow *window) GtkActionGroup *actions; GtkAction *action; GtkUIManager *ui; - GtkToolItem *open_recent_tool_item; - GtkWidget *menu_item; GError *error = NULL; GSettingsSchemaSource *schema_source; GSettingsSchema *caja_schema; @@ -6630,7 +6628,7 @@ _fr_window_archive_extract_from_edata (FrWindow *window, } -static gboolean _fr_window_ask_overwrite_dialog (OverwriteData *odata); +static void _fr_window_ask_overwrite_dialog (OverwriteData *odata); static void @@ -6681,7 +6679,7 @@ overwrite_dialog_response_cb (GtkDialog *dialog, } -static gboolean +static void _fr_window_ask_overwrite_dialog (OverwriteData *odata) { gboolean do_not_extract = FALSE; @@ -7694,7 +7692,6 @@ fr_window_rename_selection (FrWindow *window, if (name_is_present (window, parent_dir, new_name, &reason)) { GtkWidget *dlg; - int UNUSED_VARIABLE r; dlg = _gtk_message_dialog_new (GTK_WINDOW (window), GTK_DIALOG_MODAL, @@ -7703,7 +7700,7 @@ fr_window_rename_selection (FrWindow *window, reason, GTK_STOCK_CLOSE, GTK_RESPONSE_OK, NULL); - r = gtk_dialog_run (GTK_DIALOG (dlg)); + gtk_dialog_run (GTK_DIALOG (dlg)); gtk_widget_destroy (dlg); g_free (reason); g_free (new_name); @@ -7940,7 +7937,7 @@ copy_from_archive_action_performed_cb (FrArchive *archive, return; } - continue_batch = handle_errors (window, archive, action, error); + (void) handle_errors (window, archive, action, error); if (error->type != FR_PROC_ERROR_NONE) { fr_clipboard_data_unref (window->priv->clipboard_data); |