Replace deprecated GDK functions

https://bugzilla.gnome.org/show_bug.cgi?id=662245
This commit is contained in:
Florian Müllner
2011-10-19 23:52:11 +02:00
parent b62f5ef07d
commit 8a39145e3c
2 changed files with 24 additions and 5 deletions

View File

@ -1081,6 +1081,7 @@ shell_app_launch (ShellApp *app,
gboolean ret;
ShellGlobal *global;
MetaScreen *screen;
GdkDisplay *gdisplay;
if (startup_id)
*startup_id = NULL;
@ -1099,6 +1100,7 @@ shell_app_launch (ShellApp *app,
global = shell_global_get ();
screen = shell_global_get_screen (global);
gdisplay = gdk_screen_get_display (shell_global_get_gdk_screen (global));
if (timestamp == 0)
timestamp = shell_global_get_current_time (global);
@ -1106,7 +1108,7 @@ shell_app_launch (ShellApp *app,
if (workspace < 0)
workspace = meta_screen_get_active_workspace_index (screen);
context = gdk_app_launch_context_new ();
context = gdk_display_get_app_launch_context (gdisplay);
gdk_app_launch_context_set_timestamp (context, timestamp);
gdk_app_launch_context_set_desktop (context, workspace);