Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 519058 | Differences between
and this patch

Collapse All | Expand All

(-)gtk/gtkapplication-quartz-menu.c.orig (-1 / +11 lines)
Lines 30-35 Link Here
30
30
31
#import <Cocoa/Cocoa.h>
31
#import <Cocoa/Cocoa.h>
32
32
33
#if !defined(MAC_OS_X_VERSION_10_7) || \
34
MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
35
36
@interface NSScreen (LionAPI)
37
- (CGFloat)backingScaleFactor;
38
- (NSRect)convertRectToBacking:(NSRect)aRect;
39
@end
40
41
#endif // 10.7
42
33
#define ICON_SIZE 16
43
#define ICON_SIZE 16
34
44
35
#define BLACK               "#000000"
45
#define BLACK               "#000000"
Lines 262-268 Link Here
262
        }
272
        }
263
273
264
      theme = gtk_icon_theme_get_default ();
274
      theme = gtk_icon_theme_get_default ();
265
      scale = roundf ([[NSScreen mainScreen] backingScaleFactor]);
275
      scale = [[NSScreen mainScreen] respondsToSelector:@selector(backingScaleFactor)] ? roundf ([[NSScreen mainScreen] backingScaleFactor]) : 1.;
266
      info = gtk_icon_theme_lookup_by_gicon_for_scale (theme, icon, ICON_SIZE, scale, GTK_ICON_LOOKUP_USE_BUILTIN);
276
      info = gtk_icon_theme_lookup_by_gicon_for_scale (theme, icon, ICON_SIZE, scale, GTK_ICON_LOOKUP_USE_BUILTIN);
267
277
268
      if (info != NULL)
278
      if (info != NULL)

Return to bug 519058