summaryrefslogtreecommitdiff
path: root/gtk/gtkwidget.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-08-14 06:38:11 +0200
committerBenjamin Otte <otte@redhat.com>2010-09-26 15:02:59 +0200
commit806a7239aef9f20f06391ca01e991afd79b27874 (patch)
tree2f592a6edd0adeacaff3f6e823f47927579bc421 /gtk/gtkwidget.h
parent8b4d50dd1d054325b31aecc53bb117c76774092f (diff)
downloadgtk+-806a7239aef9f20f06391ca01e991afd79b27874.tar.gz
widget: shape_combine_mask => shape_cobine_region
Replace gtk_widget_shape_combine_region() with gtk_widget_shape_combine_mask() and gtk_widget_input_shape_combine_region() with gtk_widget_input_shape_combine_mask(). As GdkBitmap is going away, and the region equivalents already exist, this seems like pretty much the default step to take. Includes code to fix up the users.
Diffstat (limited to 'gtk/gtkwidget.h')
-rw-r--r--gtk/gtkwidget.h22
1 files changed, 5 insertions, 17 deletions
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index 36cd35d24f..22fdf38ca3 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -199,7 +199,6 @@ typedef struct _GtkSelectionData GtkSelectionData;
typedef struct _GtkWidgetPrivate GtkWidgetPrivate;
typedef struct _GtkWidgetClass GtkWidgetClass;
typedef struct _GtkWidgetAuxInfo GtkWidgetAuxInfo;
-typedef struct _GtkWidgetShapeInfo GtkWidgetShapeInfo;
typedef struct _GtkClipboard GtkClipboard;
typedef struct _GtkTooltip GtkTooltip;
typedef struct _GtkWindow GtkWindow;
@@ -530,13 +529,6 @@ struct _GtkWidgetAuxInfo
GtkBorder margin;
};
-struct _GtkWidgetShapeInfo
-{
- gint16 offset_x;
- gint16 offset_y;
- GdkBitmap *shape_mask;
-};
-
GType gtk_widget_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_widget_new (GType type,
const gchar *first_property_name,
@@ -919,16 +911,12 @@ GtkTextDirection gtk_widget_get_default_direction (void);
/* Compositing manager functionality */
gboolean gtk_widget_is_composited (GtkWidget *widget);
-/* Counterpart to gdk_window_shape_combine_mask.
+/* Counterpart to gdk_window_shape_combine_region.
*/
-void gtk_widget_shape_combine_mask (GtkWidget *widget,
- GdkBitmap *shape_mask,
- gint offset_x,
- gint offset_y);
-void gtk_widget_input_shape_combine_mask (GtkWidget *widget,
- GdkBitmap *shape_mask,
- gint offset_x,
- gint offset_y);
+void gtk_widget_shape_combine_region (GtkWidget *widget,
+ cairo_region_t *region);
+void gtk_widget_input_shape_combine_region (GtkWidget *widget,
+ cairo_region_t *region);
/* internal function */
void gtk_widget_reset_shapes (GtkWidget *widget);