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 585210 - Use accessor functions instead direct access
Use accessor functions instead direct access
Status: RESOLVED FIXED
Product: cheese
Classification: Applications
Component: general
git master
Other Linux
: Normal trivial
: 2.26
Assigned To: Cheese Maintainer(s)
Cheese Maintainer(s)
Depends on: 562937 585211
Blocks: 585391
 
 
Reported: 2009-06-09 02:58 UTC by Javier Jardón (IRC: jjardon)
Modified: 2010-04-22 06:08 UTC
See Also:
GNOME target: ---
GNOME version: 2.29/2.30


Attachments
Use accessor functions instead direct access (15.36 KB, patch)
2009-06-09 03:01 UTC, Javier Jardón (IRC: jjardon)
none Details | Review
Use accessor functions instead direct access v2 (14.17 KB, patch)
2009-06-21 22:46 UTC, Javier Jardón (IRC: jjardon)
none Details | Review
Use accessor functions instead direct access v3 (13.03 KB, patch)
2009-06-22 00:42 UTC, Javier Jardón (IRC: jjardon)
committed Details | Review
Fixed allocation issues (5.06 KB, patch)
2009-07-30 10:45 UTC, Javier Jardón (IRC: jjardon)
none Details | Review
Use accessor functions instead direct access.part2 (8.66 KB, patch)
2009-09-10 17:25 UTC, Javier Jardón (IRC: jjardon)
none Details | Review
Use accessor functions instead direct access.part2.v2 (7.85 KB, patch)
2009-12-08 02:31 UTC, Javier Jardón (IRC: jjardon)
needs-work Details | Review
Use accessor functions instead direct access. Final patch (12.77 KB, patch)
2010-03-29 19:22 UTC, Javier Jardón (IRC: jjardon)
none Details | Review
Use accessor functions instead direct access. Final patch (12.77 KB, patch)
2010-04-22 06:08 UTC, Filippo Argiolas
committed Details | Review

Description Javier Jardón (IRC: jjardon) 2009-06-09 02:58:01 UTC
See http://live.gnome.org/GnomeGoals/UseGseal for more details
Comment 1 Javier Jardón (IRC: jjardon) 2009-06-09 03:01:46 UTC
Created attachment 136184 [details] [review]
Use accessor functions instead direct access

Is a partial patch because there is not accesor functions for GtkObject flags ( See bug #562937 ) and there is not accesor functions for GtkWidget allocations ( See bug #548052 )
Comment 2 Jaap A. Haitsma 2009-06-21 20:34:32 UTC
Patch looks fine but please correct indentation. You use spaces at some places where you should use tabs.

Feel free to commit this patch already after correcting these indentation issues.
Comment 3 Javier Jardón (IRC: jjardon) 2009-06-21 22:46:23 UTC
Created attachment 137142 [details] [review]
Use accessor functions instead direct access v2

Can someone review this and commit if all is ok? (I don't have commit permissions)
Comment 4 daniel g. siegel 2009-06-21 23:43:41 UTC
indentation is still not that perfect ;) you could install uncrustify and then run our indent script, which you can find under tools/
Comment 5 Javier Jardón (IRC: jjardon) 2009-06-22 00:42:05 UTC
Created attachment 137149 [details] [review]
Use accessor functions instead direct access v3

Third round ;). Hope all is correct now. (vim :set list command was very useful)
Comment 6 Jaap A. Haitsma 2009-06-22 05:35:12 UTC
Looks fine please commit.

Leave this bug open such that the remaining issues will also be solved as soon as the dependent bugs are fixed
Comment 7 Javier Jardón (IRC: jjardon) 2009-06-22 10:42:52 UTC
Can someone commit this? (As I said in comment #3 I don't have commit permissions)
Thank you.
Comment 8 daniel g. siegel 2009-06-22 11:00:30 UTC
committed, thanks a lot
Comment 9 Javier Jardón (IRC: jjardon) 2009-07-30 10:45:20 UTC
Created attachment 139553 [details] [review]
Fixed allocation issues
Comment 10 Javier Jardón (IRC: jjardon) 2009-09-10 17:25:37 UTC
Created attachment 142926 [details] [review]
Use accessor functions instead direct access.part2

GTK+ 2.17.10 is now the required version
I've used all the GTK+ 2.17.11 api available, still missing:
GTK_WIDGET_MAPPED ()
Comment 11 Javier Jardón (IRC: jjardon) 2009-12-08 02:31:16 UTC
Created attachment 149303 [details] [review]
Use accessor functions instead direct access.part2.v2

Here a new updated patch against current master.

With this patch, cheese will compile with GSEAL_ENABLED without problems (so, will be ready for GTK+3 :))
Comment 12 Javier Jardón (IRC: jjardon) 2010-03-13 05:20:48 UTC
Hello, could this get a review?
Comment 13 Filippo Argiolas 2010-03-27 08:36:32 UTC
Review of attachment 149303 [details] [review]:

I'm sorry Javier, your patch completely slipped out of my radar :(
I must have skipped it thinking to get back to it later but completely forgot.

It doesn't apply to current master, probably because of my little refactoring of cheese-window code.
Would you please update it? I think it can safely go in for 2.30.1
Comment 14 Filippo Argiolas 2010-03-27 08:36:37 UTC
Review of attachment 149303 [details] [review]:

I'm sorry Javier, your patch completely slipped out of my radar :(
I must have skipped it thinking to get back to it later but completely forgot.

It doesn't apply to current master, probably because of my little refactoring of cheese-window code.
Would you please update it? I think it can safely go in for 2.30.1
Comment 15 Javier Jardón (IRC: jjardon) 2010-03-29 19:22:21 UTC
Created attachment 157406 [details] [review]
Use accessor functions instead direct access. Final patch

Hey Filippo!, no problem ;)

Here the final patch to fix this bug.

I'd recommend you to add 

CFLAGS+="-DGSEAL_ENABLE"

to you configure.ac, so this bug won't be reopended
Comment 16 André Klapper 2010-04-21 09:33:18 UTC
Javier: 
+  int col, row;
Why is this not at the beginning of that function but in the middle?
Comment 17 Filippo Argiolas 2010-04-21 11:29:12 UTC
Andre (and Javier), FYI, I didn't forget about this bug.
I'm just pretty busy but I plan to commit this and some other trivial patches waiting in bugzilla before monday (2.30.1 release).
Comment 18 Filippo Argiolas 2010-04-22 06:08:34 UTC
The following fix has been pushed:
cb32585 Use accessor functions instead direct access. Final patch
Comment 19 Filippo Argiolas 2010-04-22 06:08:38 UTC
Created attachment 159309 [details] [review]
Use accessor functions instead direct access. Final patch

Fixes