[Xfce4-commits] [xfce/thunar] 33/46: Fix Compact List spacing
noreply at xfce.org
noreply at xfce.org
Tue Aug 15 02:35:41 CEST 2017
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/thunar.
commit 8808d7dda601d761d245c72d9813ecfb867d9529
Author: acs <acs82 at gmx.de>
Date: Tue May 30 23:47:43 2017 +0200
Fix Compact List spacing
---
thunar/thunar-compact-view.c | 10 ++++++++--
thunar/thunar-statusbar.c | 13 ++++++++-----
2 files changed, 16 insertions(+), 7 deletions(-)
diff --git a/thunar/thunar-compact-view.c b/thunar/thunar-compact-view.c
index c9296b8..5556ada 100644
--- a/thunar/thunar-compact-view.c
+++ b/thunar/thunar-compact-view.c
@@ -58,8 +58,14 @@ thunar_compact_view_class_init (ThunarCompactViewClass *klass)
thunarstandard_view_class->zoom_level_property_name = "last-compact-view-zoom-level";
/* override ThunarAbstractIconView default row spacing */
- gtk_rc_parse_string ("style\"thunar-compact-view-style\"{ThunarCompactView::row-spacing=0}\n"
- "class\"ThunarCompactView\"style\"thunar-compact-view-style\"\n");
+ gtk_widget_class_install_style_property(gtkwidget_class, g_param_spec_int (
+ "row-spacing", //name
+ "row-spacing", //nick
+ "space between rows in px", //blurb
+ 0, //min
+ 100, //max
+ 0, //default
+ G_PARAM_READWRITE)); //flags
}
diff --git a/thunar/thunar-statusbar.c b/thunar/thunar-statusbar.c
index b4c9021..f875f45 100644
--- a/thunar/thunar-statusbar.c
+++ b/thunar/thunar-statusbar.c
@@ -90,11 +90,14 @@ thunar_statusbar_class_init (ThunarStatusbarClass *klass)
if (!style_initialized)
{
- gtk_rc_parse_string ("style \"thunar-statusbar-internal\" {\n"
- " GtkStatusbar::shadow-type = GTK_SHADOW_NONE\n"
- "}\n"
- "class \"ThunarStatusbar\" "
- "style \"thunar-statusbar-internal\"\n");
+ gtk_widget_class_install_style_property(gobject_class, g_param_spec_int (
+ "shadow-type", //name
+ "shadow-type", //nick
+ "the type of the shadow", //blurb
+ GTK_SHADOW_NONE, //min
+ GTK_SHADOW_ETCHED_OUT, //max
+ GTK_SHADOW_NONE, //default
+ G_PARAM_READWRITE)); //flags
}
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list