aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--data/empathy.css2
-rw-r--r--src/empathy-chat-window.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/data/empathy.css b/data/empathy.css
index d0c13684d..628800234 100644
--- a/data/empathy.css
+++ b/data/empathy.css
@@ -1,4 +1,4 @@
-#empathy-tab-close-button {
+.empathy-tab-close-button {
-GtkButton-default-border : 0;
-GtkButton-default-outside-border : 0;
-GtkButton-inner-border: 0;
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 990640ede..f9c1d2097 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -415,10 +415,12 @@ static GtkWidget *
create_close_button (void)
{
GtkWidget *button, *image;
+ GtkStyleContext *context;
button = gtk_button_new ();
- gtk_widget_set_name (button, "empathy-tab-close-button");
+ context = gtk_widget_get_style_context (button);
+ gtk_style_context_add_class (context, "empathy-tab-close-button");
gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
gtk_button_set_focus_on_click (GTK_BUTTON (button), FALSE);