aboutsummaryrefslogtreecommitdiff
path: root/src/transport-widget.c
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2011-08-24 16:41:49 -0400
committerKen VanDine <ken.vandine@canonical.com>2011-08-24 16:41:49 -0400
commit8b55a10546bbdee8fe0fa0088d751f885068ca94 (patch)
treeea416100e1b9947fabb5c9d66b0d682d3bcbf4fc /src/transport-widget.c
parentc2e72b29865db94e4ab160dcd4b7f5c802df9cdb (diff)
parentec7f559d69b40d9186cb307cb0dde5c600bd8c0b (diff)
downloadayatana-indicator-sound-8b55a10546bbdee8fe0fa0088d751f885068ca94.tar.gz
ayatana-indicator-sound-8b55a10546bbdee8fe0fa0088d751f885068ca94.tar.bz2
ayatana-indicator-sound-8b55a10546bbdee8fe0fa0088d751f885068ca94.zip
releasing version 0.7.6.1-0ubuntu1
Diffstat (limited to 'src/transport-widget.c')
-rw-r--r--src/transport-widget.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/transport-widget.c b/src/transport-widget.c
index 564b76f..22e3b2a 100644
--- a/src/transport-widget.c
+++ b/src/transport-widget.c
@@ -181,13 +181,17 @@ transport_widget_init (TransportWidget *self)
/* create widget path */
spinner_widget_path = gtk_widget_path_new();
- gtk_widget_path_iter_set_name (spinner_widget_path, -1 , "IndicatorSoundSpinner");
+ gtk_widget_path_iter_set_name (spinner_widget_path, -1 , "IndicatorSound");
+ gtk_widget_path_append_type (spinner_widget_path, GTK_TYPE_MENU);
+ gtk_widget_path_append_type (spinner_widget_path, GTK_TYPE_MENU_ITEM);
gtk_widget_path_append_type (spinner_widget_path, GTK_TYPE_SPINNER);
/* create style context and append path */
spinner_style_context = gtk_style_context_new();
gtk_style_context_set_path (spinner_style_context, spinner_widget_path);
+ gtk_style_context_add_class (spinner_style_context, GTK_STYLE_CLASS_MENU);
+ gtk_style_context_add_class (spinner_style_context, GTK_STYLE_CLASS_MENUITEM);
gtk_style_context_add_class (spinner_style_context, GTK_STYLE_CLASS_SPINNER);
}
#endif
@@ -1282,7 +1286,7 @@ draw (GtkWidget* button, cairo_t *cr)
#if GTK_CHECK_VERSION(3, 0, 0)
gtk_style_context_add_class (gtk_widget_get_style_context (button),
- "menu");
+ GTK_STYLE_CLASS_MENU);
#endif
CairoColorRGB bg_color, fg_color, bg_selected, bg_prelight;
CairoColorRGB color_middle[2], color_middle_prelight[2], color_outer[2], color_outer_prelight[2],
@@ -1414,7 +1418,7 @@ draw (GtkWidget* button, cairo_t *cr)
draw_gradient (cr,
RECT_WIDTH / 2 + X,
Y + 1,
- (RECT_WIDTH - 7)/2,
+ (RECT_WIDTH - 4.5)/2,
MIDDLE_RADIUS,
INNER_COMPRESSED_START,
INNER_COMPRESSED_END);
@@ -1466,7 +1470,7 @@ draw (GtkWidget* button, cairo_t *cr)
draw_gradient (cr,
RECT_WIDTH / 2 + X,
Y + 1,
- (RECT_WIDTH - 7)/2,
+ (RECT_WIDTH - 4.5)/2,
MIDDLE_RADIUS,
MIDDLE_START_PRELIGHT,
MIDDLE_END_PRELIGHT);