[Pkg-xfce-devel] Bug#789273: Bug#789273: lightdm-gtk-greeter: add an option to scale the display

Vincent Lefevre vincent at vinc17.net
Tue Jun 30 13:54:23 UTC 2015


On 2015-06-30 15:39:03 +0200, Vincent Lefevre wrote:
> FYI, with gtk3-icon-browser from the gtk-3-examples package, I can
> see that the Symbolic/Other icons are available in the following
> sizes:
> 
> 16x16 24x24 32x32 48x48 64x64
> 
> If gtk3-icon-browser can select the size in the current theme, why
> can't lightdm-gtk-greeter do this?

I think I understand the problem. In the lightdm-gtk-greeter source,
GTK_ICON_SIZE_MENU is used for the icon size, and

https://developer.gnome.org/gtk3/stable/gtk3-Themeable-Stock-Images.html#GTK-ICON-SIZE-MENU:CAPS

documents this:

------------------------------------------------------------
enum GtkIconSize

   Built-in stock icon sizes.

Members

   GTK_ICON_SIZE_INVALID

   Invalid size.

   GTK_ICON_SIZE_MENU

   Size appropriate for menus (16px).

   GTK_ICON_SIZE_SMALL_TOOLBAR

   Size appropriate for small toolbars (16px).

   GTK_ICON_SIZE_LARGE_TOOLBAR

   Size appropriate for large toolbars (24px)

   GTK_ICON_SIZE_BUTTON

   Size appropriate for buttons (16px)

   GTK_ICON_SIZE_DND

   Size appropriate for drag and drop (32px)

   GTK_ICON_SIZE_DIALOG

   Size appropriate for dialogs (48px)
------------------------------------------------------------

So, it seems that GTK_ICON_SIZE_MENU is hardcoded to 16px, hence
the small icons in high DPI (whatever the theme).

So, I suggest a new option to be able to use a size different from
GTK_ICON_SIZE_MENU.

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



More information about the Pkg-xfce-devel mailing list