diff options
-rw-r--r-- | plugins/time/pluma-time-plugin.c | 2 | ||||
-rw-r--r-- | pluma/pluma-documents-panel.c | 3 | ||||
-rw-r--r-- | pluma/pluma-message-bus.c | 3 | ||||
-rw-r--r-- | pluma/pluma-tab.c | 12 | ||||
-rw-r--r-- | pluma/pluma-window.c | 14 |
5 files changed, 5 insertions, 29 deletions
diff --git a/plugins/time/pluma-time-plugin.c b/plugins/time/pluma-time-plugin.c index 1266f971..57026e65 100644 --- a/plugins/time/pluma-time-plugin.c +++ b/plugins/time/pluma-time-plugin.c @@ -732,7 +732,7 @@ get_configure_dialog (PlumaTimePlugin *plugin) gchar *ui_file; GtkWidget *viewport; PlumaTimePluginPromptType prompt_type; - gchar *sf, *cf; + gchar *sf; GtkWidget *error_widget; gboolean ret; gchar *root_objects[] = { diff --git a/pluma/pluma-documents-panel.c b/pluma/pluma-documents-panel.c index 68a6a5d6..62ded929 100644 --- a/pluma/pluma-documents-panel.c +++ b/pluma/pluma-documents-panel.c @@ -515,7 +515,7 @@ menu_position (GtkMenu *menu, { GtkTreePath *path; GdkRectangle rect; - gint wx, wy; + gint wy; GtkAllocation allocation; GtkRequisition requisition; GtkWidget *w; @@ -531,7 +531,6 @@ menu_position (GtkMenu *menu, NULL, &rect); - wx = rect.x; wy = rect.y; gdk_window_get_origin (gtk_widget_get_window (w), x, y); diff --git a/pluma/pluma-message-bus.c b/pluma/pluma-message-bus.c index 4cda5693..1dd89c47 100644 --- a/pluma/pluma-message-bus.c +++ b/pluma/pluma-message-bus.c @@ -616,7 +616,6 @@ pluma_message_bus_register (PlumaMessageBus *bus, ...) { gchar *identifier; - gpointer data; va_list var_args; PlumaMessageType *message_type; @@ -630,7 +629,7 @@ pluma_message_bus_register (PlumaMessageBus *bus, } identifier = pluma_message_type_identifier (object_path, method); - data = g_hash_table_lookup (bus->priv->types, identifier); + g_hash_table_lookup (bus->priv->types, identifier); va_start (var_args, num_optional); message_type = pluma_message_type_new_valist (object_path, diff --git a/pluma/pluma-tab.c b/pluma/pluma-tab.c index 05c82a8e..8e0d4d47 100644 --- a/pluma/pluma-tab.c +++ b/pluma/pluma-tab.c @@ -889,7 +889,6 @@ document_loaded (PlumaDocument *document, GtkWidget *emsg; GFile *location; gchar *uri; - const PlumaEncoding *encoding; g_return_if_fail ((tab->priv->state == PLUMA_TAB_STATE_LOADING) || (tab->priv->state == PLUMA_TAB_STATE_REVERTING)); @@ -916,8 +915,6 @@ document_loaded (PlumaDocument *document, else pluma_tab_set_state (tab, PLUMA_TAB_STATE_REVERTING_ERROR); - encoding = pluma_document_get_encoding (document); - if (error->domain == G_IO_ERROR && error->code == G_IO_ERROR_CANCELLED) { @@ -1033,9 +1030,6 @@ document_loaded (PlumaDocument *document, g_file_equal (location, loc)) { GtkWidget *w; - PlumaView *view; - - view = pluma_tab_get_view (tab); tab->priv->not_editable = TRUE; @@ -2157,7 +2151,6 @@ _pluma_tab_save_as (PlumaTab *tab, PlumaDocumentNewlineType newline_type) { PlumaDocument *doc; - PlumaDocumentSaveFlags save_flags; g_return_if_fail (PLUMA_IS_TAB (tab)); g_return_if_fail ((tab->priv->state == PLUMA_TAB_STATE_NORMAL) || @@ -2182,11 +2175,6 @@ _pluma_tab_save_as (PlumaTab *tab, */ set_message_area (tab, NULL); - save_flags = tab->priv->save_flags | PLUMA_DOCUMENT_SAVE_IGNORE_MTIME; - } - else - { - save_flags = tab->priv->save_flags; } pluma_tab_set_state (tab, PLUMA_TAB_STATE_SAVING); diff --git a/pluma/pluma-window.c b/pluma/pluma-window.c index e56fd84f..9ae0945c 100644 --- a/pluma/pluma-window.c +++ b/pluma/pluma-window.c @@ -269,15 +269,6 @@ pluma_window_window_state_event (GtkWidget *widget, window->priv->window_state = event->new_window_state; - if (event->changed_mask & - (GDK_WINDOW_STATE_MAXIMIZED | GDK_WINDOW_STATE_FULLSCREEN)) - { - gboolean show; - - show = !(event->new_window_state & - (GDK_WINDOW_STATE_MAXIMIZED | GDK_WINDOW_STATE_FULLSCREEN)); - } - return FALSE; } @@ -3022,7 +3013,6 @@ fullscreen_controls_build (PlumaWindow *window) { PlumaWindowPrivate *priv = window->priv; GtkWidget *toolbar; - GtkWidget *toolbar_recent_menu; GtkAction *action; if (priv->fullscreen_controls != NULL) @@ -3041,8 +3031,8 @@ fullscreen_controls_build (PlumaWindow *window) action = gtk_action_group_get_action (priv->always_sensitive_action_group, "LeaveFullscreen"); g_object_set (action, "is-important", TRUE, NULL); - - toolbar_recent_menu = setup_toolbar_open_button (window, toolbar); + + setup_toolbar_open_button (window, toolbar); gtk_container_foreach (GTK_CONTAINER (toolbar), (GtkCallback)set_non_homogeneus, |