[gnome-builder] widget: gb_widget_get_workbench() should return GbWorkbench
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] widget: gb_widget_get_workbench() should return GbWorkbench
- Date: Sun, 14 Dec 2014 11:34:59 +0000 (UTC)
commit 1a3c4f704e7e5bbeff1fcfa99c89f46c8c25803f
Author: Christian Hergert <christian hergert me>
Date: Sun Dec 14 03:30:17 2014 -0800
widget: gb_widget_get_workbench() should return GbWorkbench
src/util/gb-widget.c | 2 +-
src/util/gb-widget.h | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/util/gb-widget.c b/src/util/gb-widget.c
index 1a97bd1..a3d2a75 100644
--- a/src/util/gb-widget.c
+++ b/src/util/gb-widget.c
@@ -29,7 +29,7 @@
*
* Returns: (transfer none) (type GbWorkbench*): A #GbWorkbench or %NULL.
*/
-gpointer
+GbWorkbench *
gb_widget_get_workbench (GtkWidget *widget)
{
GtkWidget *toplevel;
diff --git a/src/util/gb-widget.h b/src/util/gb-widget.h
index 590b4b2..ed445e9 100644
--- a/src/util/gb-widget.h
+++ b/src/util/gb-widget.h
@@ -21,6 +21,8 @@
#include <gtk/gtk.h>
+#include "gb-workbench-types.h"
+
G_BEGIN_DECLS
void gb_widget_add_style_class (gpointer widget,
@@ -30,7 +32,7 @@ cairo_surface_t *gb_widget_snapshot (GtkWidget *widget,
gint height,
gdouble alpha,
gboolean draw_border);
-gpointer gb_widget_get_workbench (GtkWidget *widget);
+GbWorkbench *gb_widget_get_workbench (GtkWidget *widget);
void gb_widget_fade_hide (GtkWidget *widget);
void gb_widget_fade_show (GtkWidget *widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]