diff options
author | monsta <[email protected]> | 2016-02-01 13:38:30 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-02-01 13:38:30 +0300 |
commit | 9fce9762c9f16ebd20d3813975bc75d786380641 (patch) | |
tree | 9b2b0bc9b9870a13b2e44c6862db7bbbeef25e36 | |
parent | e60f2758c59659488b4b7a8b64e2e486e15e64ab (diff) | |
download | pluma-9fce9762c9f16ebd20d3813975bc75d786380641.tar.bz2 pluma-9fce9762c9f16ebd20d3813975bc75d786380641.tar.xz |
fix a few build warnings
-rw-r--r-- | plugins/filebrowser/pluma-file-browser-widget.c | 3 | ||||
-rw-r--r-- | pluma/pluma-gio-document-loader.c | 4 | ||||
-rw-r--r-- | pluma/pluma-prefs-manager.c | 2 | ||||
-rw-r--r-- | pluma/pluma-progress-message-area.c | 4 | ||||
-rw-r--r-- | pluma/pluma-session.c | 4 | ||||
-rw-r--r-- | pluma/pluma-view.c | 2 | ||||
-rw-r--r-- | pluma/pluma-window.c | 6 |
7 files changed, 7 insertions, 18 deletions
diff --git a/plugins/filebrowser/pluma-file-browser-widget.c b/plugins/filebrowser/pluma-file-browser-widget.c index 264408ff..7cef34cc 100644 --- a/plugins/filebrowser/pluma-file-browser-widget.c +++ b/plugins/filebrowser/pluma-file-browser-widget.c @@ -2113,9 +2113,6 @@ async_free (AsyncData *async) static void set_busy (PlumaFileBrowserWidget *obj, gboolean busy) { -#if !GTK_CHECK_VERSION (3, 16, 0) - GdkCursor *cursor; -#endif GdkWindow *window; window = gtk_widget_get_window (GTK_WIDGET (obj->priv->treeview)); diff --git a/pluma/pluma-gio-document-loader.c b/pluma/pluma-gio-document-loader.c index c1377578..35b31098 100644 --- a/pluma/pluma-gio-document-loader.c +++ b/pluma/pluma-gio-document-loader.c @@ -288,10 +288,6 @@ close_input_stream_ready_cb (GInputStream *stream, static void write_complete (AsyncData *async) { - PlumaDocumentLoader *loader; - - loader = PLUMA_DOCUMENT_LOADER (async->loader); - if (async->loader->priv->stream) g_input_stream_close_async (G_INPUT_STREAM (async->loader->priv->stream), G_PRIORITY_HIGH, diff --git a/pluma/pluma-prefs-manager.c b/pluma/pluma-prefs-manager.c index 0226200b..c82c887c 100644 --- a/pluma/pluma-prefs-manager.c +++ b/pluma/pluma-prefs-manager.c @@ -519,7 +519,7 @@ DEFINE_INT_PREF (print_line_numbers, DEFINE_STRING_PREF (print_font_body, GPM_PRINT_FONT_BODY) -gchar * +static gchar * pluma_prefs_manager_get_default_string_value (const gchar *key) { gchar *font = NULL; diff --git a/pluma/pluma-progress-message-area.c b/pluma/pluma-progress-message-area.c index e9812ba7..3be702e3 100644 --- a/pluma/pluma-progress-message-area.c +++ b/pluma/pluma-progress-message-area.c @@ -102,10 +102,6 @@ pluma_progress_message_area_get_property (GObject *object, GValue *value, GParamSpec *pspec) { - PlumaProgressMessageArea *area; - - area = PLUMA_PROGRESS_MESSAGE_AREA (object); - switch (prop_id) { default: diff --git a/pluma/pluma-session.c b/pluma/pluma-session.c index 8971ce00..628f4ef5 100644 --- a/pluma/pluma-session.c +++ b/pluma/pluma-session.c @@ -87,11 +87,11 @@ save_window_session (GKeyFile *state_file, panel = pluma_window_get_side_panel (window); g_key_file_set_boolean (state_file, group_name, "side-panel-visible", - gtk_widget_get_visible (panel)); + gtk_widget_get_visible (GTK_WIDGET (panel))); panel = pluma_window_get_bottom_panel (window); g_key_file_set_boolean (state_file, group_name, "bottom-panel-visible", - gtk_widget_get_visible (panel)); + gtk_widget_get_visible (GTK_WIDGET (panel))); active_document = pluma_window_get_active_document (window); if (active_document) diff --git a/pluma/pluma-view.c b/pluma/pluma-view.c index 1abdde63..bc244137 100644 --- a/pluma/pluma-view.c +++ b/pluma/pluma-view.c @@ -1794,7 +1794,7 @@ start_interactive_search_real (PlumaView *view) gtk_widget_get_visible (view->priv->search_window)) return TRUE; - if (!gtk_widget_has_focus (view)) + if (!gtk_widget_has_focus (GTK_WIDGET (view))) return FALSE; buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view)); diff --git a/pluma/pluma-window.c b/pluma/pluma-window.c index 8430443d..15111e54 100644 --- a/pluma/pluma-window.c +++ b/pluma/pluma-window.c @@ -3436,9 +3436,9 @@ notebook_button_press_event (GtkNotebook *notebook, } else if (GDK_BUTTON_PRESS == event->type && 2 == event->button) { - GtkWidget *tab; - tab = GTK_WIDGET (pluma_window_get_active_tab (window)); - notebook_tab_close_request (notebook, tab, window); + PlumaTab *tab; + tab = pluma_window_get_active_tab (window); + notebook_tab_close_request (PLUMA_NOTEBOOK (notebook), tab, GTK_WINDOW (window)); return FALSE; } |