[gedit] Do not use deprecated css properties
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Do not use deprecated css properties
- Date: Tue, 8 Dec 2015 16:07:59 +0000 (UTC)
commit e075c670b628121ed50ffbe8b988e88fced02393
Author: Paolo Borelli <pborelli gnome org>
Date: Tue Dec 8 17:07:20 2015 +0100
Do not use deprecated css properties
gedit/gedit-small-button.c | 8 +++-----
gedit/gedit-status-menu-button.c | 7 ++-----
gedit/resources/css/gedit.adwaita.css | 6 +++---
3 files changed, 8 insertions(+), 13 deletions(-)
---
diff --git a/gedit/gedit-small-button.c b/gedit/gedit-small-button.c
index 4247f13..b8a7797 100644
--- a/gedit/gedit-small-button.c
+++ b/gedit/gedit-small-button.c
@@ -35,11 +35,9 @@ gedit_small_button_class_init (GeditSmallButtonClass *klass)
{
static const gchar button_style[] =
"* {\n"
- "-GtkButton-default-border : 0;\n"
- "-GtkButton-default-outside-border : 0;\n"
- "-GtkButton-inner-border: 0;\n"
- "-GtkWidget-focus-line-width : 0;\n"
- "-GtkWidget-focus-padding : 0;\n"
+ "padding: 0;\n"
+ "border: 0;\n"
+ "outline-width: 0;\n"
"}";
klass->priv = G_TYPE_CLASS_GET_PRIVATE (klass, GEDIT_TYPE_SMALL_BUTTON, GeditSmallButtonClassPrivate);
diff --git a/gedit/gedit-status-menu-button.c b/gedit/gedit-status-menu-button.c
index 2cfd9bf..ef4fefb 100644
--- a/gedit/gedit-status-menu-button.c
+++ b/gedit/gedit-status-menu-button.c
@@ -87,12 +87,9 @@ gedit_status_menu_button_class_init (GeditStatusMenuButtonClass *klass)
{
static const gchar style[] =
"* {\n"
- "-GtkButton-default-border : 0;\n"
- "-GtkButton-default-outside-border : 0;\n"
- "-GtkButton-inner-border: 0;\n"
- "-GtkWidget-focus-line-width : 0;\n"
- "-GtkWidget-focus-padding : 0;\n"
"padding: 1px 8px 2px 4px;\n"
+ "border: 0;\n"
+ "outline-width: 0;\n"
"}";
GObjectClass *object_class = G_OBJECT_CLASS (klass);
diff --git a/gedit/resources/css/gedit.adwaita.css b/gedit/resources/css/gedit.adwaita.css
index d2262ad..7f77cac 100644
--- a/gedit/resources/css/gedit.adwaita.css
+++ b/gedit/resources/css/gedit.adwaita.css
@@ -56,7 +56,7 @@ GeditWindow .pane-separator:hover {
border-color: transparent;
border-width: 1px;
padding: 1px;
- icon-shadow: none;
+ -gtk-icon-shadow: none;
}
.gedit-document-panel .prelight-row .button {
@@ -76,7 +76,7 @@ GeditWindow .pane-separator:hover {
color: @button_active_text;
background-color: alpha(black, 0.08);
box-shadow: inset 0 1px alpha(black, 0.05);
- icon-shadow: 0 1px @button_active_text_shadow;
+ -gtk-icon-shadow: 0 1px @button_active_text_shadow;
border-color: alpha(black, 0.27)
alpha(black, 0.13)
@@ -86,7 +86,7 @@ GeditWindow .pane-separator:hover {
.gedit-document-panel .prelight-row .button:backdrop {
color: mix(@theme_unfocused_fg_color, @theme_unfocused_base_color, 0.7);
- icon-shadow: none;
+ -gtk-icon-shadow: none;
}
.gedit-document-panel .prelight-row .button:backdrop:hover {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]