D-Bus: Emit cast to avoid C warning for signal handling in clients
[vala-lang.git] / vapi / packages / gtk+-2.0 / gtk+-2.0.patch
blobb38843ca3610c9f37cfeb96f013a4b5a1127aba7
1 diff -puNr gtk+-2.10.4.orig/gtk/gtkclipboard.h gtk+-2.10.4/gtk/gtkclipboard.h
2 --- gtk+-2.10.4.orig/gtk/gtkclipboard.h 2006-04-24 07:42:12.000000000 +0200
3 +++ gtk+-2.10.4/gtk/gtkclipboard.h 2006-09-27 12:45:36.000000000 +0200
4 @@ -30,6 +30,9 @@ G_BEGIN_DECLS
5 #define GTK_CLIPBOARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CLIPBOARD, GtkClipboard))
6 #define GTK_IS_CLIPBOARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CLIPBOARD))
8 +typedef struct _GtkClipboard GtkClipboard;
9 +typedef struct _GtkClipboardClass GtkClipboardClass;
11 typedef void (* GtkClipboardReceivedFunc) (GtkClipboard *clipboard,
12 GtkSelectionData *selection_data,
13 gpointer data);
14 diff -puNr gtk+-2.10.4.orig/gtk/gtkfilechooser.h gtk+-2.10.4/gtk/gtkfilechooser.h
15 --- gtk+-2.10.4.orig/gtk/gtkfilechooser.h 2005-10-10 16:29:03.000000000 +0200
16 +++ gtk+-2.10.4/gtk/gtkfilechooser.h 2006-09-27 12:45:36.000000000 +0200
17 @@ -29,6 +29,7 @@ G_BEGIN_DECLS
18 #define GTK_TYPE_FILE_CHOOSER (gtk_file_chooser_get_type ())
19 #define GTK_FILE_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_CHOOSER, GtkFileChooser))
20 #define GTK_IS_FILE_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_CHOOSER))
21 +#define GTK_FILE_CHOOSER_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_FILE_CHOOSER, GtkFileChooserIface))
23 typedef struct _GtkFileChooser GtkFileChooser;
25 diff -puNr gtk+-2.10.4.orig/gtk/gtktreemodel.c gtk+-2.10.4/gtk/gtktreemodel.c
26 --- gtk+-2.10.4.orig/gtk/gtktreemodel.c 2006-08-16 22:52:23.000000000 +0200
27 +++ gtk+-2.10.4/gtk/gtktreemodel.c 2006-09-27 13:06:17.000000000 +0200
28 @@ -193,14 +193,15 @@ gtk_tree_model_base_init (gpointer g_cla
29 closure = g_closure_new_simple (sizeof (GClosure), NULL);
30 g_closure_set_marshal (closure, row_inserted_marshal);
31 tree_model_signals[ROW_INSERTED] =
32 - g_signal_newv (I_("row_inserted"),
33 - GTK_TYPE_TREE_MODEL,
34 - G_SIGNAL_RUN_FIRST,
35 - closure,
36 - NULL, NULL,
37 - _gtk_marshal_VOID__BOXED_BOXED,
38 - G_TYPE_NONE, 2,
39 - row_inserted_params);
40 + g_signal_new (I_("row_inserted"),
41 + GTK_TYPE_TREE_MODEL,
42 + G_SIGNAL_RUN_FIRST,
43 + G_STRUCT_OFFSET (GtkTreeModelIface, row_inserted),
44 + NULL, NULL,
45 + _gtk_marshal_VOID__BOXED_BOXED,
46 + G_TYPE_NONE, 2,
47 + GTK_TYPE_TREE_PATH | G_SIGNAL_TYPE_STATIC_SCOPE,
48 + GTK_TYPE_TREE_ITER);
50 /**
51 * GtkTreeModel::row-has-child-toggled:
52 @@ -242,14 +243,14 @@ gtk_tree_model_base_init (gpointer g_cla
53 closure = g_closure_new_simple (sizeof (GClosure), NULL);
54 g_closure_set_marshal (closure, row_deleted_marshal);
55 tree_model_signals[ROW_DELETED] =
56 - g_signal_newv (I_("row_deleted"),
57 - GTK_TYPE_TREE_MODEL,
58 - G_SIGNAL_RUN_FIRST,
59 - closure,
60 - NULL, NULL,
61 - _gtk_marshal_VOID__BOXED,
62 - G_TYPE_NONE, 1,
63 - row_deleted_params);
64 + g_signal_new (I_("row_deleted"),
65 + GTK_TYPE_TREE_MODEL,
66 + G_SIGNAL_RUN_FIRST,
67 + G_STRUCT_OFFSET (GtkTreeModelIface, row_deleted),
68 + NULL, NULL,
69 + _gtk_marshal_VOID__BOXED,
70 + G_TYPE_NONE, 1,
71 + GTK_TYPE_TREE_PATH | G_SIGNAL_TYPE_STATIC_SCOPE);
73 /**
74 * GtkTreeModel::rows-reordered:
75 @@ -268,14 +269,16 @@ gtk_tree_model_base_init (gpointer g_cla
76 closure = g_closure_new_simple (sizeof (GClosure), NULL);
77 g_closure_set_marshal (closure, rows_reordered_marshal);
78 tree_model_signals[ROWS_REORDERED] =
79 - g_signal_newv (I_("rows_reordered"),
80 - GTK_TYPE_TREE_MODEL,
81 - G_SIGNAL_RUN_FIRST,
82 - closure,
83 - NULL, NULL,
84 - _gtk_marshal_VOID__BOXED_BOXED_POINTER,
85 - G_TYPE_NONE, 3,
86 - rows_reordered_params);
87 + g_signal_new (I_("rows_reordered"),
88 + GTK_TYPE_TREE_MODEL,
89 + G_SIGNAL_RUN_FIRST,
90 + G_STRUCT_OFFSET (GtkTreeModelIface, rows_reordered),
91 + NULL, NULL,
92 + _gtk_marshal_VOID__BOXED_BOXED_POINTER,
93 + G_TYPE_NONE, 3,
94 + GTK_TYPE_TREE_PATH | G_SIGNAL_TYPE_STATIC_SCOPE,
95 + GTK_TYPE_TREE_ITER,
96 + G_TYPE_POINTER);
97 initialized = TRUE;