[gnome-control-center] wacom: add the LINKED style class to the navigation widget
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] wacom: add the LINKED style class to the navigation widget
- Date: Mon, 28 Nov 2011 20:28:36 +0000 (UTC)
commit 5b86a93dfd709b0eb762acd07f0dd347b1fd6a0e
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Nov 28 14:52:24 2011 -0500
wacom: add the LINKED style class to the navigation widget
GTK+ defines a LINKED style class for linked containers now; set it on
the navigation widget so that the theme can render the buttons
connected.
https://bugzilla.gnome.org/show_bug.cgi?id=665079
panels/wacom/cc-wacom-nav-button.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/wacom/cc-wacom-nav-button.c b/panels/wacom/cc-wacom-nav-button.c
index e63a680..b90e037 100644
--- a/panels/wacom/cc-wacom-nav-button.c
+++ b/panels/wacom/cc-wacom-nav-button.c
@@ -201,9 +201,12 @@ static void
cc_wacom_nav_button_init (CcWacomNavButton *self)
{
CcWacomNavButtonPrivate *priv;
+ GtkStyleContext *context;
GtkWidget *image;
priv = self->priv = WACOM_NAV_BUTTON_PRIVATE (self);
+ context = gtk_widget_get_style_context (GTK_WIDGET (self));
+ gtk_style_context_add_class (context, GTK_STYLE_CLASS_LINKED);
priv->prev = gtk_button_new ();
image = gtk_image_new_from_icon_name ("go-previous-symbolic", GTK_ICON_SIZE_MENU);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]