aboutsummaryrefslogtreecommitdiff
path: root/src/idooffscreenproxy.h
diff options
context:
space:
mode:
authorRobert Carr <racarr@canonical.com>2011-09-02 14:54:40 -0400
committerRobert Carr <racarr@canonical.com>2011-09-02 14:54:40 -0400
commit8de6cb9023955fbc1034062aa2f46bdd1598ac8b (patch)
treed7b9cb16262490b4a8600972079d3bbd1cc2e929 /src/idooffscreenproxy.h
parent0b3ce25c4bebb38f0845c0a0e983b3cc91ff13ce (diff)
downloadayatana-ido-8de6cb9023955fbc1034062aa2f46bdd1598ac8b.tar.gz
ayatana-ido-8de6cb9023955fbc1034062aa2f46bdd1598ac8b.tar.bz2
ayatana-ido-8de6cb9023955fbc1034062aa2f46bdd1598ac8b.zip
Implement an IdoOffscreenProxy object to work around GtkRange/Scale needing grabs, change IdoScaleMenuItem to make use of this. Fixes lp: #804009
Diffstat (limited to 'src/idooffscreenproxy.h')
-rw-r--r--src/idooffscreenproxy.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/idooffscreenproxy.h b/src/idooffscreenproxy.h
new file mode 100644
index 0000000..b41bf10
--- /dev/null
+++ b/src/idooffscreenproxy.h
@@ -0,0 +1,37 @@
+#ifndef __IDO_OFFSCREEN_PROXY_H__
+#define __IDO_OFFSCREEN_PROXy_H__
+
+#include <gdk/gdk.h>
+#include <gtk/gtk.h>
+
+G_BEGIN_DECLS
+
+#define IDO_TYPE_OFFSCREEN_PROXY (ido_offscreen_proxy_get_type ())
+#define IDO_OFFSCREEN_PROXY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IDO_TYPE_OFFSCREEN_PROXY, IdoOffscreenProxy))
+#define IDO_OFFSCREEN_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IDO_TYPE_OFFSCREEN_PROXY, IdoOffscreenProxyClass))
+#define IDO_IS_OFFSCREEN_PROXY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IDO_TYPE_OFFSCREEN_PROXY))
+#define IDO_IS_OFFSCREEN_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IDO_TYPE_OFFSCREEN_PROXY))
+#define IDO_OFFSCREEN_PROXY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IDO_TYPE_OFFSCREEN_PROXY, IdoOffscreenProxyClass))
+
+typedef struct _IdoOffscreenProxy IdoOffscreenProxy;
+typedef struct _IdoOffscreenProxyClass IdoOffscreenProxyClass;
+typedef struct _IdoOffscreenProxyPrivate IdoOffscreenProxyPrivate;
+
+struct _IdoOffscreenProxyClass
+{
+ GtkBinClass parent_class;
+};
+
+struct _IdoOffscreenProxy
+{
+ GtkContainer container;
+
+ IdoOffscreenProxyPrivate *priv;
+};
+
+GType ido_offscreen_proxy_get_type (void) G_GNUC_CONST;
+GtkWidget *ido_offscreen_proxy_new (void);
+
+G_END_DECLS
+
+#endif