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 633478 - some random gtk fixes
some random gtk fixes
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: general
3.0.x (obsolete)
Other Linux
: Normal major
: ---
Assigned To: Vibha Yadav
Evolution QA team
evolution[cleanup] evolution[gtk3]
Depends on:
Blocks: 636677
 
 
Reported: 2010-10-29 16:00 UTC by Matthias Clasen
Modified: 2013-09-13 01:10 UTC
See Also:
GNOME target: 3.0
GNOME version: ---


Attachments
patch (24.35 KB, patch)
2010-10-29 16:00 UTC, Matthias Clasen
none Details | Review
Avoid Using Deprecated GTK_SELECTION_EXTENDED (1.08 KB, patch)
2010-11-17 06:43 UTC, Vibha Yadav
committed Details | Review
Patch for Adapting deprecated expose-event signal for GtkWidget for gtk-3.0 Changes (3.80 KB, patch)
2010-11-17 06:46 UTC, Vibha Yadav
reviewed Details | Review
Patch for Avoiding Deprecated Flag GTK_DIALOG_NO_SEPERATOR (4.74 KB, patch)
2010-11-17 06:50 UTC, Vibha Yadav
committed Details | Review
Patch for Using GTK_COMBO_BOX instead of deprecated GTK_COMBO_BOX_ENTRY (5.46 KB, patch)
2010-11-17 06:55 UTC, Vibha Yadav
committed Details | Review
Patch for Using cairo_surface_t instead of deprecated GdkPixmap apis (14.03 KB, patch)
2010-11-18 06:01 UTC, Vibha Yadav
none Details | Review
Avoid Using Deprecated GdkColormap (10.39 KB, patch)
2010-11-18 06:02 UTC, Vibha Yadav
none Details | Review
Patch for Using cairo_surface_t instead of deprecated GdkPixmap apis (15.15 KB, patch)
2010-11-22 12:38 UTC, Vibha Yadav
needs-work Details | Review
Patch for build failure as size_request is deprecated (22.24 KB, patch)
2010-11-29 06:42 UTC, Vibha Yadav
none Details | Review
Avoid Using Deprecated GdkColormap (9.69 KB, patch)
2010-12-09 08:42 UTC, Vibha Yadav
none Details | Review
Patch for Using cairo_surface_t instead of deprecated GdkPixmap apis (13.32 KB, patch)
2010-12-09 10:04 UTC, Vibha Yadav
none Details | Review
Patch for build failure as size_request is deprecated (7.55 KB, patch)
2010-12-09 10:10 UTC, Vibha Yadav
none Details | Review
Patch for evolution (1.91 KB, patch)
2010-12-09 10:15 UTC, Vibha Yadav
none Details | Review
Patch for evolution (39.99 KB, patch)
2010-12-09 10:38 UTC, Vibha Yadav
none Details | Review
Patch for Using GtkScrollable API instead of deprecated GtkLayout API's (28.37 KB, patch)
2010-12-13 04:59 UTC, Vibha Yadav
none Details | Review

Description Matthias Clasen 2010-10-29 16:00:38 UTC
Created attachment 173494 [details] [review]
patch

Here are some misc. fixes for size_request going away (will happen soon), dialog separators being gone, and some other stuff.

I took out the e-mail-attachement size-request handler, that should just be fixed in gtkhtml...

This is both incomplete and untested, since I can't get close to a full build of evo against current gtk. But it may still be useful.
Comment 1 Matthew Barnes 2010-11-11 19:10:37 UTC
I've pushed a "gtk3" branch where these patches can be applied until 3.0 is released.

http://git.gnome.org/browse/evolution/log/?h=gtk3
Comment 2 Vibha Yadav 2010-11-17 06:43:13 UTC
Created attachment 174648 [details] [review]
Avoid Using Deprecated GTK_SELECTION_EXTENDED

Using GTK_SELECTION_MULTIPLE. 
As Deprecated, GTK_SELECTION_EXTENDED behaves identical to GTK_SELECTION_MULTIPLE.
Comment 3 Vibha Yadav 2010-11-17 06:46:29 UTC
Created attachment 174649 [details] [review]
Patch for Adapting deprecated expose-event signal for GtkWidget for gtk-3.0 Changes

Using draw signal instead of expose-event signal
Comment 4 Vibha Yadav 2010-11-17 06:50:06 UTC
Created attachment 174650 [details] [review]
Patch for Avoiding Deprecated Flag GTK_DIALOG_NO_SEPERATOR

Using NULL instead of it
Comment 5 Vibha Yadav 2010-11-17 06:55:55 UTC
Created attachment 174651 [details] [review]
Patch for Using GTK_COMBO_BOX instead of deprecated GTK_COMBO_BOX_ENTRY
Comment 6 Vibha Yadav 2010-11-18 06:01:37 UTC
Created attachment 174751 [details] [review]
Patch for Using cairo_surface_t instead of deprecated GdkPixmap apis

Instead of using deprecated GdkPixmap api's Use cairo_surface_t and pixbuf api's for getting images
Comment 7 Vibha Yadav 2010-11-18 06:02:45 UTC
Created attachment 174752 [details] [review]
Avoid Using Deprecated GdkColormap
Comment 8 Vibha Yadav 2010-11-22 12:38:49 UTC
Created attachment 175026 [details] [review]
Patch for Using cairo_surface_t instead of deprecated GdkPixmap apis

Instead of using deprecated GdkPixmap api's Use cairo_surface_t and pixbuf
api's for getting images.
Comment 9 Vibha Yadav 2010-11-29 06:42:42 UTC
Created attachment 175447 [details] [review]
Patch for build failure as size_request is deprecated

Using get_preferred_width/height instead of deprecated size_request
Comment 10 Chenthill P 2010-11-29 06:57:29 UTC
Review of attachment 174648 [details] [review]:

looks good. please commit
Comment 11 Chenthill P 2010-11-29 07:16:35 UTC
Review of attachment 174649 [details] [review]:

Please fix if the pointed ones are memory leaks and commit the patch.

::: calendar/gui/e-meeting-time-sel.c
@@ +908,3 @@
 	mts = g_object_get_data (G_OBJECT (darea), "data");
 
+        window_cr = gdk_cairo_create (window);

shouldn this be free'ed ?

@@ +1246,3 @@
 	window = gtk_widget_get_window (GTK_WIDGET (mts));
 
+	cr = gdk_cairo_create(window);

shouldn this be free'ed ?
Comment 12 Chenthill P 2010-11-29 07:22:16 UTC
Review of attachment 174650 [details] [review]:

looks good. please commit.
Comment 13 Chenthill P 2010-11-29 07:36:21 UTC
Review of attachment 174651 [details] [review]:

::: addressbook/gui/contact-editor/e-contact-editor-fullname.c
@@ +234,2 @@
 	widget = e_builder_get_widget (builder, "comboentry-title");
+	gtk_combo_box_set_entry_text_column (GTK_COMBO_BOX (widget), 0);

is the widget a GtkComboBox or GtkComboBoxEntry ? Wont this require changes in .ui files as well ?

This question holds good to changes in other files as well.
Comment 14 Chenthill P 2010-11-29 07:39:41 UTC
(In reply to comment #13)
> Review of attachment 174651 [details] [review]:
> 
> ::: addressbook/gui/contact-editor/e-contact-editor-fullname.c
> @@ +234,2 @@
>      widget = e_builder_get_widget (builder, "comboentry-title");
> +    gtk_combo_box_set_entry_text_column (GTK_COMBO_BOX (widget), 0);
> 
> is the widget a GtkComboBox or GtkComboBoxEntry ? Wont this require changes in
> .ui files as well ?
> 
> This question holds good to changes in other files as well.
Hmm, those changes lie in another bug 635171. Please commit both the patches together. It would be great if you attach these kind of patches in a single bug and prolly a single patch would be enough ;)
Comment 15 Chenthill P 2010-11-29 10:13:02 UTC
Review of attachment 175026 [details] [review]:

Please do not use C++ style comments. I hope there the alternate for GdkColorMap is GDkVisual. Please replace it with the alternative rather than just commenting the pieces.
Comment 16 Chenthill P 2010-11-29 10:17:52 UTC
The above comment holds good for GdkPixmap patch as well. Please also test the patch from Matthias and commit the changes, tia.
Comment 17 Vibha Yadav 2010-12-02 12:01:10 UTC
Comment on attachment 174651 [details] [review]
Patch for Using GTK_COMBO_BOX instead of deprecated GTK_COMBO_BOX_ENTRY

committed with https://bugzilla.gnome.org/attachment.cgi?id=174763
Comment 18 Vibha Yadav 2010-12-06 12:26:06 UTC
Committed patches to gtk3 branch.
Comment 19 Vibha Yadav 2010-12-09 08:42:03 UTC
Created attachment 176116 [details] [review]
Avoid Using Deprecated GdkColormap

Reworked. Removed C++ commenting style.
Comment 20 Vibha Yadav 2010-12-09 10:04:29 UTC
Created attachment 176118 [details] [review]
Patch for Using cairo_surface_t instead of deprecated GdkPixmap apis

Reworked and removed c++ commenting style
Comment 21 Vibha Yadav 2010-12-09 10:10:23 UTC
Created attachment 176119 [details] [review]
Patch for build failure as size_request is deprecated

This patch contains extra changes other than mathias patch.
Using get_preferred_width/height instead of deprecated size_request
Comment 22 Vibha Yadav 2010-12-09 10:15:00 UTC
Created attachment 176120 [details] [review]
Patch for evolution

Some random changes:

+ depth parameter is removed from gdk_window_get_geometry api
+ adding dependency for libunique as evolution is not able to link properly with unique.h
+ porting changes from https://bugzilla.gnome.org/show_bug.cgi?id=633774
Comment 23 Vibha Yadav 2010-12-09 10:38:56 UTC
Created attachment 176124 [details] [review]
Patch for evolution

Adapting changes in draw api call for gtk+-3.0.

As GdkDrawable is now deprecated 
http://git.gnome.org/browse/gtk+/commit/?id=218eea43785809ce43e894ed1bd94e18757f4efa
Comment 24 Vibha Yadav 2010-12-10 08:20:34 UTC
*** Bug 636900 has been marked as a duplicate of this bug. ***
Comment 25 Vibha Yadav 2010-12-13 04:59:15 UTC
Created attachment 176320 [details] [review]
Patch for Using GtkScrollable API instead of deprecated GtkLayout API's

Using gtk_scrollable_get_vadjustment instead of gtk_layout_get_vadjustment and gtk_scrollable_get_hadjustment instead of gtk_layout_get_hadjustment
Comment 26 Matthew Barnes 2010-12-17 02:13:44 UTC
All GTK3 branches built fine for me today so I'm closing this.