Commit b257699e authored by Lionel Landwerlin's avatar Lionel Landwerlin

canvas-container: listen to scale factor to invalidate icons

This is one of the condition that needs to trigger an invalidation to
recompute layout at the correct size.
parent 028a0e9c
......@@ -5749,6 +5749,16 @@ handle_focus_out_event (GtkWidget *widget,
return FALSE;
static void
handle_scale_factor_changed (GObject *object,
GParamSpec *pspec,
gpointer user_data)
nautilus_canvas_container_request_update_all_internal (NAUTILUS_CANVAS_CONTAINER (object),
static int text_ellipsis_limits[NAUTILUS_CANVAS_ZOOM_LEVEL_N_ENTRIES];
static int desktop_text_ellipsis_limit;
......@@ -5861,6 +5871,9 @@ nautilus_canvas_container_init (NautilusCanvasContainer *container)
g_signal_connect (container, "focus-out-event",
G_CALLBACK (handle_focus_out_event), NULL);
g_signal_connect (container, "notify::scale-factor",
G_CALLBACK (handle_scale_factor_changed), NULL);
if (!setup_prefs)
g_signal_connect_swapped (nautilus_icon_view_preferences,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment