After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 755692 - gtk-demo bad return value for the callback function for the "command-line" signal
gtk-demo bad return value for the callback function for the "command-line" si...
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
3.18.x
Other All
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2015-09-27 11:12 UTC by cedlemo
Modified: 2015-09-28 10:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description cedlemo 2015-09-27 11:12:59 UTC
in the file gtk+/demos/gtk-demo/main.c a the line 1173,

the signal "command-line" is linked with the callback command_line:

      g_signal_connect (app, "command-line", G_CALLBACK (command_line), NULL);

And this callback can be found at the line 1076 :

static void
command_line (GApplication            *app,
              GApplicationCommandLine *cmdline)

After looking at the documentation, this callback should return a gint:

https://developer.gnome.org/gio/unstable/GApplication.html#GApplication-command-line

gint
user_function (GApplication            *application,
               GApplicationCommandLine *command_line,
               gpointer                 user_data)


Sorry for bothering you if this is not an error.
Comment 1 Matthias Clasen 2015-09-28 10:30:51 UTC
Thanks for pointing that out, fixed