aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
-rw-r--r--src/ephy-notebook.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index cb903955c..41db8320e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -25,8 +25,8 @@ AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([configure.ac])
-EPIPHANY_MAJOR=2.19
-EPIPHANY_API_VERSION=2.19
+EPIPHANY_MAJOR=2.21
+EPIPHANY_API_VERSION=2.21
# This should stay at the major version of the latest stable releases
EPIPHANY_UA_VERSION=2.20
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index 352d4518a..d679dad9d 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -647,10 +647,9 @@ build_tab_label (EphyNotebook *nb, EphyTab *tab)
/* don't allow focus on the close button */
gtk_button_set_focus_on_click (GTK_BUTTON (close_button), FALSE);
- rcstyle = gtk_rc_style_new ();
+ rcstyle = gtk_widget_get_modifier_style (close_button);
rcstyle->xthickness = rcstyle->ythickness = 0;
gtk_widget_modify_style (close_button, rcstyle);
- gtk_rc_style_unref (rcstyle);
image = gtk_image_new_from_stock (GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU);
gtk_widget_set_tooltip_text (close_button, _("Close tab"));