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 631266 - build against gtk3
build against gtk3
Status: RESOLVED FIXED
Product: gnome-disk-utility
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-disk-utility-maint
: 636952 (view as bug list)
Depends on: 602040 632647
Blocks:
 
 
Reported: 2010-10-03 22:23 UTC by Matthias Clasen
Modified: 2011-01-24 18:06 UTC
See Also:
GNOME target: 3.0
GNOME version: ---


Attachments
patch (24.26 KB, patch)
2010-10-03 22:23 UTC, Matthias Clasen
none Details | Review
Build against GTK+ 3 (28.67 KB, patch)
2010-12-12 01:56 UTC, Craig Keogh
none Details | Review

Description Matthias Clasen 2010-10-03 22:23:23 UTC
Created attachment 171650 [details] [review]
patch

here is a patch that bumps the gtk dependency to 2.90 (and also bumps several other libraries to their gtk3-using versions), and adapts the code to work with gtk3.

It overlaps with https://bugzilla.gnome.org/show_bug.cgi?id=602040 insofar as it replaces the GduSpinner with GtkSpinner.
Comment 1 Matthias Clasen 2010-10-04 01:04:04 UTC
Note that I forgot to remove some gdu-spinner.h includes
Comment 2 André Klapper 2010-11-25 21:26:14 UTC
so how can this get a review? davidz?
Comment 3 Craig Keogh 2010-12-12 01:56:42 UTC
Created attachment 176264 [details] [review]
Build against GTK+ 3

I updated Matthias' patch. I did the following extra:
- 1 line tweak so configure.ac applies to git master
- remove size_request and refactored as per gtk 3.0 migration guide
- replaced deprecated gtk_widget_hide_all with gtk_widget_hide
Comment 4 Craig Keogh 2010-12-12 02:06:01 UTC
*** Bug 636952 has been marked as a duplicate of this bug. ***
Comment 5 David Zeuthen (not reading bugmail) 2011-01-21 20:46:04 UTC
I applied this patch but it needed quite a bit of work

 http://git.gnome.org/browse/gnome-disk-utility/commit/?id=a58f325cbead303bf79026935927d83cb55c2f15

I'm not entirely sure how to deal with theming so right now the grid colors etc. are hard coded. Hoping to change that soon.
Comment 6 André Klapper 2011-01-21 21:03:39 UTC
(In reply to comment #5)
> I'm not entirely sure how to deal with theming so right now the grid colors
> etc. are hard coded. Hoping to change that soon.

Is there a bug report (ID?) to follow?
Comment 7 David Zeuthen (not reading bugmail) 2011-01-24 17:32:00 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > I'm not entirely sure how to deal with theming so right now the grid colors
> > etc. are hard coded. Hoping to change that soon.
> 
> Is there a bug report (ID?) to follow?

I've filed bug 640444 for now.

FWIW, I started working on this today but quickly ran into problems. For starters, there's not a lot of gtk3 themes available to test with and/or other apps ported to gtk3 to learn from. And since GNOME3 will not ship with any UI to switch themes (AFAIK, anyway) it's probably fine to hard code the colors for now.
Comment 8 Matthias Clasen 2011-01-24 17:52:50 UTC
We still hope to ship hicontrast/lowcontrast/inverse themes, so hardcoding is not great
Comment 9 David Zeuthen (not reading bugmail) 2011-01-24 18:06:50 UTC
(In reply to comment #8)
> We still hope to ship hicontrast/lowcontrast/inverse themes, so hardcoding is
> not great

That's why there's an open bug about it...