diff options
author | Luke from DC <[email protected]> | 2023-07-08 17:10:25 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2023-07-08 19:10:25 +0200 |
commit | c1b2e7798670cc795979090023d1b9dcb2a0b330 (patch) | |
tree | 632a206d3501fd48f0e1d1af709b0c4054c49c84 /eel/eel-editable-label.c | |
parent | df25aef7d386d3bf8da08ec5d8dd9e44c9b09e50 (diff) | |
download | caja-c1b2e7798670cc795979090023d1b9dcb2a0b330.tar.bz2 caja-c1b2e7798670cc795979090023d1b9dcb2a0b330.tar.xz |
wayland: initial support for showing the desktop
* Wayland: Support rendering the desktop
*Wayland support is optional via the --enable-wayland option
* eel-editable-label-c: remove unused variable
This was leftover from earlier code compatable only with x11
* Fix gtk-layer-shell-0 version check, improve error message when Wayland requested but not found
Diffstat (limited to 'eel/eel-editable-label.c')
-rw-r--r-- | eel/eel-editable-label.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/eel/eel-editable-label.c b/eel/eel-editable-label.c index 92ce7015..7c4bcb38 100644 --- a/eel/eel-editable-label.c +++ b/eel/eel-editable-label.c @@ -1028,7 +1028,6 @@ eel_editable_label_ensure_layout (EelEditableLabel *label, else { gint wrap_width; - gint scale; pango_layout_set_width (label->layout, -1); pango_layout_get_extents (label->layout, NULL, &logical_rect); @@ -1039,7 +1038,6 @@ eel_editable_label_ensure_layout (EelEditableLabel *label, longest_paragraph = width; wrap_width = get_label_wrap_width (label); - scale = gtk_widget_get_scale_factor (widget); width = MIN (width, wrap_width); width = MIN (width, PANGO_SCALE * (gdk_screen_width () + 1) / 2); |