Get the window handle

Hi, ALL,

GIcon *icon = g_volume_get_icon( volume );
GtkIconInfo *info = NULL;
GtkIconTheme *icon_theme = g_icon_theme_get_default();
info = gtk_icon_theme_lookup_by_gicon_for_scale( icon_theme, icon, 16, gdk_window_get_scale_factor(), 0 );

1 Can the last parameter to gtk_icon_theme_lookup…() be 0? I don’t really care much about that…
2. I understand that the size parameter is used for the default size and then the scale factor is applied. Am I right?
3. How do I get the current GdkWindow to pass to get_scale_factor()?

Thank you.

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.