Cleanups: fix deprecations
gtk_widget_get_root_window() gdk_screen_get_monitor_at_window() gdk_screen_get_monitor_geometry()
This commit is contained in:
		@ -217,16 +217,18 @@ static void
 | 
				
			|||||||
set_geometry (ServerContextService *context)
 | 
					set_geometry (ServerContextService *context)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    GdkScreen *screen;
 | 
					    GdkScreen *screen;
 | 
				
			||||||
 | 
					    GdkDisplay *display;
 | 
				
			||||||
    GdkWindow *root;
 | 
					    GdkWindow *root;
 | 
				
			||||||
    gint monitor;
 | 
					    GdkMonitor *monitor;
 | 
				
			||||||
    GdkRectangle rect;
 | 
					    GdkRectangle rect;
 | 
				
			||||||
    const EekKeyboard *keyboard;
 | 
					    const EekKeyboard *keyboard;
 | 
				
			||||||
    EekBounds bounds;
 | 
					    EekBounds bounds;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    screen = gdk_screen_get_default ();
 | 
					    screen = gdk_screen_get_default ();
 | 
				
			||||||
    root = gtk_widget_get_root_window (context->window);
 | 
					    root = gdk_screen_get_root_window (screen);
 | 
				
			||||||
    monitor = gdk_screen_get_monitor_at_window (screen, root);
 | 
					    display = gdk_display_get_default();
 | 
				
			||||||
    gdk_screen_get_monitor_geometry (screen, monitor, &rect);
 | 
					    monitor = gdk_display_get_monitor_at_window (display, root);
 | 
				
			||||||
 | 
					    gdk_monitor_get_geometry (monitor, &rect);
 | 
				
			||||||
    keyboard = eekboard_context_service_get_keyboard (EEKBOARD_CONTEXT_SERVICE(context));
 | 
					    keyboard = eekboard_context_service_get_keyboard (EEKBOARD_CONTEXT_SERVICE(context));
 | 
				
			||||||
    eek_element_get_bounds (EEK_ELEMENT(keyboard), &bounds);
 | 
					    eek_element_get_bounds (EEK_ELEMENT(keyboard), &bounds);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user