diff options
author | Cody Russell <crussell@canonical.com> | 2010-07-15 11:21:39 -0500 |
---|---|---|
committer | Cody Russell <crussell@canonical.com> | 2010-07-15 11:21:39 -0500 |
commit | 272dafa2317a9ac6602cf595b7571ed5bb96decc (patch) | |
tree | d80d48d02f1c6c1f3c2206cfce2b61e76ba2dd48 /src | |
parent | 32093b51ba9486b417083806465a2c0a0556bd0b (diff) | |
download | ayatana-ido-272dafa2317a9ac6602cf595b7571ed5bb96decc.tar.gz ayatana-ido-272dafa2317a9ac6602cf595b7571ed5bb96decc.tar.bz2 ayatana-ido-272dafa2317a9ac6602cf595b7571ed5bb96decc.zip |
Force IdoRange to style itself by name rather than by class. Otherwise they all have the style used by the last one created.
Diffstat (limited to 'src')
-rw-r--r-- | src/idorange.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/idorange.c b/src/idorange.c index 315d7fd..ba5c2c8 100644 --- a/src/idorange.c +++ b/src/idorange.c @@ -141,6 +141,9 @@ ido_range_constructed (GObject *object) "range-style", &style, NULL); + g_snprintf (buf, sizeof (buf), "idorange-%p", range); + gtk_widget_set_name (GTK_WIDGET (range), buf); + if (style == IDO_RANGE_STYLE_SMALL) { gint width, height; @@ -154,8 +157,8 @@ ido_range_constructed (GObject *object) "style \"ido-range\" {\n" " GtkRange::slider-width = %d\n" " GtkScale::slider-length = %d\n" - "} class \"IdoRange\" style \"ido-range\"\n", - width, height); + "} widget \"*.idorange-%p\" style \"ido-range\"\n", + width, height, range); gtk_rc_parse_string (buf); } |