- out_printf(outh, "guint \t%s_%s__connect_full\t(%s *object,\n"
- "\t\t\t\t\tconst char *name,\n"
- "\t\t\t\t\tGtkSignalFunc func,\n"
- "\t\t\t\t\tGtkCallbackMarshal marshal,\n"
- "\t\t\t\t\tgpointer data,\n"
- "\t\t\t\t\tGtkDestroyNotify destroy_func,\n"
- "\t\t\t\t\tgboolean object_signal,\n"
- "\t\t\t\t\tgboolean after);\n",
- funcbase, m->id, typebase);
-
- out_printf(outh, "#define %s_%s__connect(object,name,func,data) "
- "%s_%s__connect_full((object),(name),(func),NULL,"
- "(data),NULL,FALSE,FALSE)\n",
- funcbase, m->id, funcbase, m->id);
- out_printf(outh, "#define %s_%s__connect_after(object,name,func,data) "
- "%s__connect_%s_full((object),(name),(func),NULL,"
- "(data),NULL,FALSE,TRUE)\n",
- funcbase, m->id, funcbase, m->id);
-
- out_printf(outh, "guint \t%s_%s__connect_while_alive\t(%s *object,\n"
- "\t\t\t\t\tconst char *name,\n"
- "\t\t\t\t\tGtkSignalFunc func,\n"
- "\t\t\t\t\tgpointer data,\n"
- "\t\t\t\t\tGtkObject *alive_object);\n\n",
- funcbase, m->id, typebase);
+ id = g_strdup (m->id);
+ g_strup (id);
+
+ if ( ! gnu) {
+ out_printf (outh, "#define %s_SIGNAL_%s(func)\t"
+ "\"%s\",GTK_SIGNAL_FUNC(func)\n",
+ macrobase, id, get_real_id (m->id));
+ } else {
+ out_printf (outh, "#define %s_SIGNAL_%s(func)\t"
+ "\"%s\",GTK_SIGNAL_FUNC(({",
+ macrobase, id, get_real_id (m->id));
+ print_method (outh, "", "(* ___", "", ") ", ", gpointer data ",
+ " = func; ", m, FALSE, TRUE, TRUE);
+ out_printf (outh, "___%s; }))\n", get_real_id (m->id));
+
+ }
+ g_free (id);
+}
+
+static void
+put_signal_macros (const Class *c, gboolean gnu)
+{
+ const GList *li;
+
+ if (signals < 0)
+ return;
+
+ for (li = c->nodes; li != NULL; li = li->next) {
+ const Node *n = li->data;
+ if (n->type == METHOD_NODE)
+ put_signal_macro ((Method *)n, gnu);
+ }