[metacity] libmetacity: add space between buttons and title
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] libmetacity: add space between buttons and title
- Date: Thu, 20 Jul 2017 22:22:20 +0000 (UTC)
commit 58edf09694c35c35962c0a12f48f871dcb5b2562
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Jul 20 23:48:49 2017 +0300
libmetacity: add space between buttons and title
libmetacity/meta-theme-gtk.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/libmetacity/meta-theme-gtk.c b/libmetacity/meta-theme-gtk.c
index 0012f21..8f224b2 100644
--- a/libmetacity/meta-theme-gtk.c
+++ b/libmetacity/meta-theme-gtk.c
@@ -553,9 +553,7 @@ meta_theme_gtk_calc_geometry (MetaThemeImpl *impl,
}
x = rect.x - layout->gtk.button_margin.left * scale;
-
- if (i > 0)
- x -= layout->gtk.titlebar_spacing * scale;
+ x -= layout->gtk.titlebar_spacing * scale;
}
/* save right edge of titlebar for later use */
@@ -608,9 +606,7 @@ meta_theme_gtk_calc_geometry (MetaThemeImpl *impl,
}
x = rect.x + rect.width + layout->gtk.button_margin.right * scale;
-
- if (i < button_layout->n_left_buttons - 1)
- x += layout->gtk.titlebar_spacing * scale;
+ x += layout->gtk.titlebar_spacing * scale;
}
/* Center vertically in the available content area */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]