diff options
author | ZenWalker <[email protected]> | 2017-07-16 04:56:55 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2017-07-16 04:56:55 +0200 |
commit | 93a5e46e96a251b7574859bc1cd211fdbde01c3d (patch) | |
tree | 7bef2fd6e07d146879e5e68438023b2b3f547014 /src | |
parent | a36653c9b55d879cf8b22cbd2776db4d5c8f0d88 (diff) | |
download | caja-93a5e46e96a251b7574859bc1cd211fdbde01c3d.tar.bz2 caja-93a5e46e96a251b7574859bc1cd211fdbde01c3d.tar.xz |
avoid deprecated gdk_screen_get_number
Diffstat (limited to 'src')
-rw-r--r-- | src/file-manager/fm-directory-view.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c index c37da477..1d8c8b5b 100644 --- a/src/file-manager/fm-directory-view.c +++ b/src/file-manager/fm-directory-view.c @@ -48,6 +48,7 @@ #include <eel/eel-string.h> #include <eel/eel-vfs-extensions.h> #include <gdk/gdkkeysyms.h> +#include <gdk/gdkx.h> #include <gtk/gtk.h> #include <glib/gi18n.h> #include <glib/gstdio.h> @@ -2050,7 +2051,7 @@ fm_directory_view_init (FMDirectoryView *view) G_CALLBACK(click_policy_changed_callback), view); g_signal_connect_swapped (caja_preferences, - "changed::" CAJA_PREFERENCES_SORT_DIRECTORIES_FIRST, + "changed::" CAJA_PREFERENCES_SORT_DIRECTORIES_FIRST, G_CALLBACK(sort_directories_first_changed_callback), view); g_signal_connect_swapped (mate_lockdown_preferences, @@ -2753,7 +2754,7 @@ copy_move_done_callback (GHashTable *debuting_files, gpointer data) /* Schedule menu update for undo items */ schedule_update_menus (directory_view); - + } copy_move_done_data_free (copy_move_done_data); @@ -4072,7 +4073,7 @@ new_folder_done (GFile *new_folder, gpointer user_data) } screen = gtk_widget_get_screen (GTK_WIDGET (directory_view)); - g_snprintf (screen_string, sizeof (screen_string), "%d", gdk_screen_get_number (screen)); + g_snprintf (screen_string, sizeof (screen_string), "%d", gdk_x11_screen_get_screen_number (screen)); file = caja_file_get (new_folder); @@ -7374,7 +7375,7 @@ static const GtkActionEntry directory_view_entries[] = { /* label, accelerator */ N_("_Redo"), "<control>Y", /* tooltip */ N_("Redo the last undone action"), G_CALLBACK (action_redo_callback) }, - + /* * multiview-TODO: decide whether "Reset to Defaults" should * be window-wide, and not just view-wide. @@ -10528,7 +10529,7 @@ fm_directory_view_handle_netscape_url_drop (FMDirectoryView *view, point.y = y; screen = gtk_widget_get_screen (GTK_WIDGET (view)); - screen_num = gdk_screen_get_number (screen); + screen_num = gdk_x11_screen_get_screen_number (screen); caja_link_local_create (target_uri != NULL ? target_uri : container_uri, link_name, |