[gnome-shell/gnome-3-10] shell_global: Use correct agruments for in update_scale_factor



commit cd40011e363167900bfef8a32950807a1247c391
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Tue Feb 18 23:28:51 2014 +0100

    shell_global: Use correct agruments for in update_scale_factor
    
    Otherwise we crash ...
    
    https://bugzilla.gnome.org/show_bug.cgi?id=705410

 src/shell-global.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/shell-global.c b/src/shell-global.c
index 8064d3c..852d14f 100644
--- a/src/shell-global.c
+++ b/src/shell-global.c
@@ -741,7 +741,7 @@ global_stage_after_paint (gpointer data)
 
 
 static void
-update_scale_factor (gpointer data)
+update_scale_factor (GdkScreen *screen, gpointer data)
 {
   ShellGlobal *global = SHELL_GLOBAL (data);
   ClutterStage *stage = CLUTTER_STAGE (global->stage);
@@ -943,7 +943,7 @@ _shell_global_set_plugin (ShellGlobal *global,
 
   global->focus_manager = st_focus_manager_get_for_stage (global->stage);
 
-  update_scale_factor (global);
+  update_scale_factor (global->gdk_screen, global);
 }
 
 GjsContext *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]