Files
gnome-session/gnome-session-bnc389137-splash-layout.patch

46 lines
1.7 KiB
Diff

Index: gnome-session/splash-widget.c
===================================================================
--- gnome-session/splash-widget.c (révision 4682)
+++ gnome-session/splash-widget.c (copie de travail)
@@ -437,7 +437,7 @@ get_splash_icon (SplashWidget *sw, const
pb = gtk_icon_theme_load_icon (icon_theme,
icon_no_extension,
- 48, /* icon size */
+ 22, /* icon size */
0, NULL);
g_free (icon_no_extension);
@@ -474,7 +474,7 @@ layout_icon (SplashWidget *sw, SplashIco
if (!si->scaled) {
if (gdk_pixbuf_get_width (si->unscaled) == sw->icon_size &&
gdk_pixbuf_get_height (si->unscaled) == sw->icon_size)
- si->scaled = g_object_ref (si->unscaled);
+ si->scaled = gdk_pixbuf_copy (si->unscaled);
else
si->scaled = gdk_pixbuf_scale_simple (
si->unscaled, sw->icon_size,
Index: gnome-session/splash-widget.h
===================================================================
--- gnome-session/splash-widget.h (révision 4682)
+++ gnome-session/splash-widget.h (copie de travail)
@@ -66,14 +66,14 @@ void splash_widget_add_icon (SplashWidg
#define SPLASH_BASE_HEIGHT 220
/* offset from bottom of label & font */
-#define SPLASH_LABEL_V_OFFSET 3
+#define SPLASH_LABEL_V_OFFSET 8
#define SPLASH_LABEL_FONT_SIZE 8
/* icon border, spacing, offset from bottom and initial size */
-#define SPLASH_ICON_BORDER 8
+#define SPLASH_ICON_BORDER 10
#define SPLASH_ICON_SPACING 4
-#define SPLASH_ICON_V_OFFSET 14
-#define SPLASH_BASE_ICON_SIZE 36
+#define SPLASH_ICON_V_OFFSET 20
+#define SPLASH_BASE_ICON_SIZE 22
#define SPLASH_BASE_ICON_ROWS 1
/* The global API */