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 646622 - Misc libcheese fixes
Misc libcheese fixes
Status: RESOLVED FIXED
Product: cheese
Classification: Applications
Component: general
2.91.x
Other Linux
: Normal normal
: 2.32
Assigned To: Cheese Maintainer(s)
Cheese Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2011-04-03 15:00 UTC by Lucas Rocha
Modified: 2011-04-11 21:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
lib: add some missing introspection annotations in cheese-camera (1.22 KB, patch)
2011-04-03 15:04 UTC, Lucas Rocha
committed Details | Review
lib: fix typo when initializing photo_path private attribute (956 bytes, patch)
2011-04-03 15:04 UTC, Lucas Rocha
committed Details | Review
lib: no need to declare variable to retun photo/video path (1.01 KB, patch)
2011-04-03 15:05 UTC, Lucas Rocha
committed Details | Review
lib: allocate new string to return photo/video paths (1.00 KB, patch)
2011-04-03 15:06 UTC, Lucas Rocha
needs-work Details | Review
lib: add missing glib.h include in cheese-fileutil.h (736 bytes, patch)
2011-04-03 15:06 UTC, Lucas Rocha
needs-work Details | Review
lib: properly prefix photo/video suffix constants in cheese namespace (5.39 KB, patch)
2011-04-03 15:07 UTC, Lucas Rocha
committed Details | Review
lib: use private attributes instead of unnecessary method call (995 bytes, patch)
2011-04-03 19:35 UTC, Lucas Rocha
needs-work Details | Review
lib: fix leaks and simplify cheese_fileutil_get_new_media_filename (1.94 KB, patch)
2011-04-03 19:36 UTC, Lucas Rocha
committed Details | Review

Description Lucas Rocha 2011-04-03 15:00:25 UTC
Here's a few fixes I had to make in order to use libcheese to implement webcam support in The Board.
Comment 1 Lucas Rocha 2011-04-03 15:04:21 UTC
Created attachment 185026 [details] [review]
lib: add some missing introspection annotations in cheese-camera
Comment 2 Lucas Rocha 2011-04-03 15:04:57 UTC
Created attachment 185027 [details] [review]
lib: fix typo when initializing photo_path private attribute
Comment 3 Lucas Rocha 2011-04-03 15:05:38 UTC
Created attachment 185028 [details] [review]
lib: no need to declare variable to retun photo/video path
Comment 4 Lucas Rocha 2011-04-03 15:06:15 UTC
Created attachment 185029 [details] [review]
lib: allocate new string to return photo/video paths
Comment 5 Lucas Rocha 2011-04-03 15:06:46 UTC
Created attachment 185030 [details] [review]
lib: add missing glib.h include in cheese-fileutil.h
Comment 6 Lucas Rocha 2011-04-03 15:07:20 UTC
Created attachment 185031 [details] [review]
lib: properly prefix photo/video suffix constants in cheese namespace
Comment 7 Lucas Rocha 2011-04-03 19:35:46 UTC
Created attachment 185061 [details] [review]
lib: use private attributes instead of unnecessary method call
Comment 8 Lucas Rocha 2011-04-03 19:36:21 UTC
Created attachment 185062 [details] [review]
lib: fix leaks and simplify cheese_fileutil_get_new_media_filename
Comment 9 Bastien Nocera 2011-04-03 19:46:26 UTC
Review of attachment 185026 [details] [review]:

Looks good.
Comment 10 Bastien Nocera 2011-04-03 19:47:52 UTC
Review of attachment 185027 [details] [review]:

Indeed.

Not sure what the consequence of this would be, but it might need to get in before the release.

Also, should change those to g_settings_get_string(), this usage is just silly.
Comment 11 Bastien Nocera 2011-04-03 19:48:30 UTC
Review of attachment 185028 [details] [review]:

Typo in commit message ("retun").

Looks good otherwise.
Comment 12 Bastien Nocera 2011-04-03 19:49:28 UTC
Review of attachment 185029 [details] [review]:

Any reason not to return a "const char *" instead?
Comment 13 Bastien Nocera 2011-04-03 19:49:50 UTC
Review of attachment 185030 [details] [review]:

Good.
Comment 14 Bastien Nocera 2011-04-03 19:50:45 UTC
Review of attachment 185031 [details] [review]:

Yep.
Comment 15 Bastien Nocera 2011-04-03 19:51:26 UTC
Review of attachment 185061 [details] [review]:

No need to do this if we return const char (unless we like micro-optimisations).
Comment 16 Bastien Nocera 2011-04-03 19:52:31 UTC
Review of attachment 185062 [details] [review]:

Looks good.
Comment 17 Luciana Fujii 2011-04-03 20:02:17 UTC
Review of attachment 185030 [details] [review]:

Can't we just change the glib-object inclusion to before the G_BEGIN_DECLS?
Comment 18 Lucas Rocha 2011-04-04 23:21:53 UTC
Review of attachment 185029 [details] [review]:

No strong reason. Just thought returning char * was the original intent of the API. Will change it to return const char * and fix/drop all resulting changes.
Comment 19 Lucas Rocha 2011-04-04 23:45:07 UTC
(In reply to comment #17)
> Review of attachment 185030 [details] [review]:
> 
> Can't we just change the glib-object inclusion to before the G_BEGIN_DECLS?

Right. Done.
Comment 20 daniel g. siegel 2011-04-05 08:31:36 UTC
fyi: i just created a new branch gnome-3-0.
Comment 21 Lucas Rocha 2011-04-11 21:02:49 UTC
All patches committed with the suggested changes. Closing.