summaryrefslogtreecommitdiffstats
path: root/gtk/src/renderer_button.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-03-22 23:41:03 +0000
committerjstebbins <[email protected]>2011-03-22 23:41:03 +0000
commit2ffb7ec124daa744abd4d7524b49158f6eb0ab09 (patch)
treeba3f65267c369c47854ba261008f656e31b7fe4f /gtk/src/renderer_button.c
parent1c2d3f19a565733b756fb21bf53dea49a4b4e7ca (diff)
LinGui: don't use private gtk_marshal_* functions
They are not exported in gtk+-3, so create our own marshalers git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3872 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/renderer_button.c')
-rw-r--r--gtk/src/renderer_button.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gtk/src/renderer_button.c b/gtk/src/renderer_button.c
index 5876e196b..c4df21ab3 100644
--- a/gtk/src/renderer_button.c
+++ b/gtk/src/renderer_button.c
@@ -1,4 +1,4 @@
-#include <gtk/gtkmarshal.h>
+#include "marshalers.h"
#include "renderer_button.h"
/* Some boring function declarations: GObject type system stuff */
@@ -15,13 +15,13 @@ static void custom_cell_renderer_button_set_property (GObject
static void custom_cell_renderer_button_finalize (GObject *gobject);
// My customized part that adds "clicked" signal
-static gint
+static gboolean
custom_cell_renderer_button_activate (GtkCellRenderer *cell,
GdkEvent *event,
GtkWidget *widget,
const gchar *path,
- GdkRectangle *background_area,
- GdkRectangle *cell_area,
+ GdkRectangle *background_area,
+ GdkRectangle *cell_area,
GtkCellRendererState flags);
enum {
@@ -119,7 +119,7 @@ custom_cell_renderer_button_class_init (CustomCellRendererButtonClass *klass)
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (CustomCellRendererButtonClass, clicked),
NULL, NULL,
- gtk_marshal_VOID__STRING,
+ ghb_marshal_VOID__STRING,
G_TYPE_NONE, 1,
G_TYPE_STRING);
}
@@ -195,13 +195,13 @@ custom_cell_renderer_button_new (void)
return g_object_new(CUSTOM_TYPE_CELL_RENDERER_BUTTON, NULL);
}
-static gint
+static gboolean
custom_cell_renderer_button_activate (GtkCellRenderer *cell,
GdkEvent *event,
GtkWidget *widget,
const gchar *path,
- GdkRectangle *background_area,
- GdkRectangle *cell_area,
+ GdkRectangle *background_area,
+ GdkRectangle *cell_area,
GtkCellRendererState flags)
{
CustomCellRendererButton *cellbutton;