diff options
author | Jasmine Hassan <[email protected]> | 2012-12-22 03:32:57 +0200 |
---|---|---|
committer | Jasmine Hassan <[email protected]> | 2012-12-22 03:36:29 +0200 |
commit | d58a3b0f224b999e8812242e3e93091cf077a59d (patch) | |
tree | 4632f7f05c88598aeb882cace1fa7cc4a01d4b46 /plugins | |
parent | 4d7a3ffc29a253a4387eecf1fef25d29f175103a (diff) | |
download | mate-settings-daemon-d58a3b0f224b999e8812242e3e93091cf077a59d.tar.bz2 mate-settings-daemon-d58a3b0f224b999e8812242e3e93091cf077a59d.tar.xz |
[mouse] remove deprecated gdk_drawable_get_size & gdk_drawable_get_screen
Since we now require GTK 2.24, we can directly use
gdk_window_get_width(), gdk_window_get_height(), and gdk_window_get_screen()
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mouse/msd-locate-pointer.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/plugins/mouse/msd-locate-pointer.c b/plugins/mouse/msd-locate-pointer.c index f13f7a0..c0bc16f 100644 --- a/plugins/mouse/msd-locate-pointer.c +++ b/plugins/mouse/msd-locate-pointer.c @@ -62,12 +62,8 @@ locate_pointer_paint (MsdLocatePointerData *data, progress = data->progress; - #if GTK_CHECK_VERSION(3, 0, 0) - width = gdk_window_get_width(GDK_WINDOW(data->window)); - height = gdk_window_get_height(GDK_WINDOW(data->window)); - #else - gdk_drawable_get_size(data->window, &width, &height); - #endif + width = gdk_window_get_width (data->window); + height = gdk_window_get_height (data->window); style = gtk_widget_get_style (data->widget); color = style->bg[GTK_STATE_SELECTED]; @@ -180,7 +176,7 @@ timeline_frame_cb (MsdTimeline *timeline, data->progress += CIRCLES_PROGRESS_INTERVAL; } - screen = gdk_drawable_get_screen (data->window); + screen = gdk_window_get_screen (data->window); gdk_window_get_pointer (gdk_screen_get_root_window (screen), &cursor_x, &cursor_y, NULL); gdk_window_move (data->window, @@ -334,7 +330,7 @@ msd_locate_pointer (GdkScreen *screen) msd_timeline_rewind (data->timeline); /* Create again the window if it is not for the current screen */ - if (gdk_screen_get_number (screen) != gdk_screen_get_number (gdk_drawable_get_screen (data->window))) + if (gdk_screen_get_number (screen) != gdk_screen_get_number (gdk_window_get_screen (data->window))) { gdk_window_set_user_data (data->window, NULL); gdk_window_destroy (data->window); |