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 630975 - More porting to latest GTK3
More porting to latest GTK3
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2010-09-30 01:43 UTC by William Jon McCann
Modified: 2010-10-02 09:03 UTC
See Also:
GNOME target: 3.0
GNOME version: ---


Attachments
Use gtk3 draw event instead of expose-event (9.20 KB, patch)
2010-09-30 01:44 UTC, William Jon McCann
reviewed Details | Review
Use new gdk-pixbuf header (695 bytes, patch)
2010-09-30 01:44 UTC, William Jon McCann
reviewed Details | Review
Don't use GdkColormap (2.56 KB, patch)
2010-09-30 01:44 UTC, William Jon McCann
reviewed Details | Review
Use cairo regions to set input shape (5.90 KB, patch)
2010-09-30 01:44 UTC, William Jon McCann
reviewed Details | Review
Adapt to GnomeBG API changes (2.44 KB, patch)
2010-09-30 01:44 UTC, William Jon McCann
reviewed Details | Review

Description William Jon McCann 2010-09-30 01:43:51 UTC
Haven't tested it functionally but it builds.  Probably needs some review.
Comment 1 William Jon McCann 2010-09-30 01:44:46 UTC
Created attachment 171399 [details] [review]
Use gtk3 draw event instead of expose-event
Comment 2 William Jon McCann 2010-09-30 01:44:49 UTC
Created attachment 171400 [details] [review]
Use new gdk-pixbuf header
Comment 3 William Jon McCann 2010-09-30 01:44:51 UTC
Created attachment 171401 [details] [review]
Don't use GdkColormap
Comment 4 William Jon McCann 2010-09-30 01:44:53 UTC
Created attachment 171402 [details] [review]
Use cairo regions to set input shape

Instead of bitmasks.
Comment 5 William Jon McCann 2010-09-30 01:44:55 UTC
Created attachment 171403 [details] [review]
Adapt to GnomeBG API changes
Comment 6 Bastien Nocera 2010-09-30 11:11:42 UTC
The patches all look fine to me though they'd need testing before applying.
Comment 7 Matthias Clasen 2010-09-30 22:01:00 UTC
Review of attachment 171399 [details] [review]:

::: plugins/common/gsd-osd-window.c
@@ +311,3 @@
+        window = GSD_OSD_WINDOW (widget);
+
+        gtk_widget_get_allocation (widget, &allocation);

We slightly prefer you to use gtk_widget_get_allocated_width/height instead of gtk_widget_get_allocation
Comment 8 Matthias Clasen 2010-09-30 22:02:08 UTC
Review of attachment 171400 [details] [review]:

The header is not new at all...
Comment 9 Matthias Clasen 2010-09-30 22:08:23 UTC
Review of attachment 171401 [details] [review]:

Looks good
Comment 10 Matthias Clasen 2010-09-30 22:15:05 UTC
Review of attachment 171402 [details] [review]:

::: plugins/common/gsd-osd-window.c
@@ +396,2 @@
         gtk_widget_get_allocation (widget, &allocation);
+        region = cairo_region_create_rectangle (&allocation);

I don't think this is right. We want to ignore all input, so the mask / region should be empty, not a rectangle the size of the widget. I think just doing

region = cairo_region_create ();

will do what we want.

::: plugins/mouse/gsd-locate-pointer.c
@@ +200,3 @@
+  rect.x = 0;
+  rect.y = 0;
+  region = cairo_region_create_rectangle (&rect);

Same comment here: I think the region is supposed to be empty.
Comment 11 Matthias Clasen 2010-09-30 22:16:29 UTC
Review of attachment 171403 [details] [review]:

Looks good
Comment 12 William Jon McCann 2010-10-02 09:03:43 UTC
Pushed with those fixes.  Thanks.