summaryrefslogtreecommitdiffstats
path: root/app/gfx/insets.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/gfx/insets.h')
-rw-r--r--app/gfx/insets.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/app/gfx/insets.h b/app/gfx/insets.h
index 6b8e9b1..f5806ac 100644
--- a/app/gfx/insets.h
+++ b/app/gfx/insets.h
@@ -5,6 +5,12 @@
#ifndef APP_GFX_INSETS_H_
#define APP_GFX_INSETS_H_
+#include "build/build_config.h"
+
+#if defined(OS_LINUX)
+#include <gtk/gtkstyle.h>
+#endif
+
namespace gfx {
//
@@ -16,7 +22,17 @@ class Insets {
public:
Insets() : top_(0), left_(0), bottom_(0), right_(0) {}
Insets(int top, int left, int bottom, int right)
- : top_(top), left_(left), bottom_(bottom), right_(right) { }
+ : top_(top),
+ left_(left),
+ bottom_(bottom),
+ right_(right) {}
+#if defined(OS_LINUX)
+ explicit Insets(const GtkBorder& border)
+ : top_(border.top),
+ left_(border.left),
+ bottom_(border.bottom),
+ right_(border.right) {}
+#endif
~Insets() {}