[Xfce4-commits] [apps/xfce4-terminal] 01/01: Apply slim style to terminal tabs only
noreply at xfce.org
noreply at xfce.org
Wed Dec 21 14:22:51 CET 2016
This is an automated email from the git hooks/post-receive script.
f2404 pushed a commit to branch master
in repository apps/xfce4-terminal.
commit 94588a0306236c4005ea2359090784fa6ae5dc5c
Author: Igor <f2404 at yandex.ru>
Date: Wed Dec 21 16:22:46 2016 +0300
Apply slim style to terminal tabs only
---
terminal/terminal-window.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index 79350f6..f975a1b 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -71,20 +71,21 @@ enum
};
/* CSS for slim notebook tabs style */
+#define NOTEBOOK_NAME PACKAGE_NAME "-notebook"
const gchar *CSS_SLIM_TABS =
-"notebook tab {\n"
+"#" NOTEBOOK_NAME " tab {\n"
" min-height: 0;\n"
" padding-top: 2px;\n"
" padding-bottom: 2px;\n"
"}\n"
-"notebook tab button {\n"
+"#" NOTEBOOK_NAME " tab button {\n"
" min-height: 0;\n"
" min-width: 0;\n"
" padding: 2px;\n"
" margin-top: 2px;\n"
" margin-bottom: 2px;\n"
"}\n"
-"notebook button {\n"
+"#" NOTEBOOK_NAME " button {\n"
" min-height: 0;\n"
" min-width: 0;\n"
" padding: 2px;\n"
@@ -470,6 +471,8 @@ terminal_window_init (TerminalWindow *window)
/* set the notebook group id */
gtk_notebook_set_group_name (GTK_NOTEBOOK (window->priv->notebook), window_notebook_group);
+ /* set notebook tabs style */
+ gtk_widget_set_name (window->priv->notebook, NOTEBOOK_NAME);
terminal_window_update_slim_tabs (window);
/* signals */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list