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 625001 - [examples] Don't use GdkDraw/GdkGC
[examples] Don't use GdkDraw/GdkGC
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other All
: Normal minor
: 0.10.31
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 627297 632685 (view as bug list)
Depends on:
Blocks: 624255
 
 
Reported: 2010-07-22 06:54 UTC by Sebastian Dröge (slomo)
Modified: 2010-10-21 12:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastian Dröge (slomo) 2010-07-22 06:54:49 UTC
+++ This bug was initially created as a clone of Bug #624255 +++

We're using some to-be-deprecated GTK/GDK API in our examples (gdkdraw and gdkgc) and should switch to cairo for them.
Comment 1 Sebastian Dröge (slomo) 2010-07-22 06:58:30 UTC
examples/seek/jsseek.c:    gdk_draw_rectangle (window, style->black_gc, TRUE, 0, 0,
examples/seek/seek.c:    gdk_draw_rectangle (window, style->black_gc, TRUE, 0, 0,
icles/test-xoverlay.c:     gdk_draw_rectangle (widget->window, widget->style->bg_gc[0], TRUE,
icles/test-xoverlay.c:     gdk_draw_rectangle (widget->window, widget->style->bg_gc[0], TRUE,
icles/test-xoverlay.c:  gdk_draw_rectangle (window, style->bg_gc[0], TRUE,
icles/test-xoverlay.c:  gdk_draw_rectangle (window, style->bg_gc[0], TRUE,
icles/test-xoverlay.c:  gdk_draw_rectangle (window, style->bg_gc[0], TRUE,
icles/test-xoverlay.c:  gdk_draw_rectangle (window, style->bg_gc[0], TRUE,
icles/test-colorkey.c:  gdk_draw_rectangle (window, style->white_gc, TRUE, 0, 0,
icles/test-colorkey.c:    gdk_draw_rectangle (window, trans_gc, TRUE, 0, 0, allocation.width, h);
icles/test-colorkey.c:          gdk_draw_point (window, trans_gc, x, y);

icles/test-colorkey.c:static GdkGC *trans_gc = NULL;
icles/test-colorkey.c:          trans_gc = gdk_gc_new (window);
icles/test-colorkey.c:          gdk_gc_set_rgb_fg_color (trans_gc, &trans_color);
Comment 2 Sebastian Dröge (slomo) 2010-07-24 09:50:10 UTC
commit c1982cd6fe7ed111ee85d8e9b85365ecf72ccaf4
Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>
Date:   Sat Jul 24 11:48:33 2010 +0200

    examples: Use cairo instead of to-be-deprecated GDK API
    
    Fixes bug #625001.
Comment 3 Edward Hervey 2010-08-19 06:03:52 UTC
*** Bug 627297 has been marked as a duplicate of this bug. ***
Comment 4 Sebastian Dröge (slomo) 2010-10-20 12:13:15 UTC
*** Bug 632685 has been marked as a duplicate of this bug. ***
Comment 5 Sebastian Dröge (slomo) 2010-10-21 12:35:43 UTC
*** Bug 632789 has been marked as a duplicate of this bug. ***