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 597820 - add -f flag to start cheese in fullscreen
add -f flag to start cheese in fullscreen
Status: RESOLVED FIXED
Product: cheese
Classification: Applications
Component: general
git master
Other Linux
: Normal normal
: 2.28
Assigned To: Felix Kaser
Cheese Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2009-10-08 15:07 UTC by Felix Kaser
Modified: 2010-12-16 20:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (6.07 KB, patch)
2009-10-09 08:28 UTC, Felix Kaser
none Details | Review

Description Felix Kaser 2009-10-08 15:07:31 UTC
on the cheese-mailinglist we received a feature request:

Mark Vickers:

"Full Screesn switch - be nice to have a "-fs" switch to start cheese in fullscreen.


-Vickers"
Comment 1 Felix Kaser 2009-10-09 08:28:08 UTC
Created attachment 145103 [details] [review]
patch
Comment 2 daniel g. siegel 2009-10-09 08:44:57 UTC
felix, instead of 

+                         gboolean    startup_in_wide_mode,
+                         gboolean    startup_in_fullscreen);

wouldnt it be better to have an enum?

e.g.

0 = normal
1 = wide
2 = fullscreen

and you only pass that int?

otherwise the patch looks straight forward
Comment 3 Felix Kaser 2009-10-09 11:00:19 UTC
so what do we do if one wants to start cheese wide and fullscreen?
Comment 4 daniel g. siegel 2009-10-09 11:21:58 UTC
ah yeah, didnt think of that ;)

you could add a third mode (fs + wide) or you could just make the enum a static array?
Comment 5 Felix Kaser 2009-10-09 11:41:00 UTC
don't see a point ;)

what don't you like with the gbooleans?
Comment 6 daniel g. siegel 2009-10-09 11:59:28 UTC
nothing, i just dont like two function arguments for something where one could be enough
Comment 7 Felix Kaser 2009-10-09 12:16:03 UTC
and I don't like enums ;)

could you provide a patch for the patch? :D
Comment 8 Filippo Argiolas 2009-10-10 09:56:18 UTC
Maybe a bitfield flag? Or just pass the whole options struct?
I don't think that code is really getting better looking if not with a major rewrite/gobjectification of cheese window.
Comment 9 Laura Lucas Alday 2010-12-16 20:07:18 UTC
Solved in commit 5cef19bf57a58d8ee20c20e33f625aec03befe71