summaryrefslogtreecommitdiffstats
path: root/src/widgets/paint-selector.h
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2014-08-23 18:38:31 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2014-08-23 18:38:31 +0000
commit97e4fa3e7310f0ec42e0d35cb33e244713f6ad48 (patch)
treec84b2609f03531fe58dd50b7898340d2c1fdfaa9 /src/widgets/paint-selector.h
parentproperly attribute code (diff)
downloadinkscape-97e4fa3e7310f0ec42e0d35cb33e244713f6ad48.tar.gz
inkscape-97e4fa3e7310f0ec42e0d35cb33e244713f6ad48.zip
paint-selector: Clean up GObject boilerplate & fix deprecation
(bzr r13341.1.159)
Diffstat (limited to 'src/widgets/paint-selector.h')
-rw-r--r--src/widgets/paint-selector.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/widgets/paint-selector.h b/src/widgets/paint-selector.h
index a2a303a47..1e8ad6d2e 100644
--- a/src/widgets/paint-selector.h
+++ b/src/widgets/paint-selector.h
@@ -35,7 +35,11 @@ class SPStyle;
* Generic paint selector widget.
*/
struct SPPaintSelector {
+#if GTK_CHECK_VERSION(3,0,0)
+ GtkBox vbox;
+#else
GtkVBox vbox;
+#endif
enum Mode {
MODE_EMPTY,
@@ -118,7 +122,11 @@ enum {COMBO_COL_LABEL=0, COMBO_COL_STOCK=1, COMBO_COL_PATTERN=2, COMBO_COL_SEP=3
/// The SPPaintSelector vtable
struct SPPaintSelectorClass {
+#if GTK_CHECK_VERSION(3,0,0)
+ GtkBoxClass parent_class;
+#else
GtkVBoxClass parent_class;
+#endif
void (* mode_changed) (SPPaintSelector *psel, SPPaintSelector::Mode mode);