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 572175 - Remove deprecated GTK+ symbols
Remove deprecated GTK+ symbols
Status: RESOLVED FIXED
Product: Evolution Webcal
Classification: Deprecated
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Rodney Dawes
Rodney Dawes
Depends on:
Blocks: 585692 612469
 
 
Reported: 2009-02-17 17:40 UTC by André Klapper
Modified: 2010-04-14 14:35 UTC
See Also:
GNOME target: 3.0
GNOME version: ---


Attachments
modified source file, deprecated symbols of gtk removed (17.80 KB, patch)
2009-10-02 15:27 UTC, ShuiYu
none Details | Review
I am sorry I just make a mistake. Upload again. (3.93 KB, text/plain)
2009-10-02 15:32 UTC, ShuiYu
  Details
still incorrect. try again... (3.93 KB, patch)
2009-10-02 15:34 UTC, ShuiYu
none Details | Review
patch to Remove-deprecated-GTK+-symbols (4.44 KB, patch)
2009-10-06 13:31 UTC, ShuiYu
rejected Details | Review
Remove deprecated GTK+ symbols (5.09 KB, patch)
2010-04-13 14:57 UTC, Roberto Guido
committed Details | Review

Description André Klapper 2009-02-17 17:40:09 UTC
http://live.gnome.org/GnomeGoals/RemoveDeprecatedSymbols/GTK%2B

./src/evolution-webcal-notify.c:  toption = gtk_option_menu_new ();
./src/evolution-webcal-notify.c:  gtk_option_menu_set_menu (GTK_OPTION_MENU (toption), menu);
./src/evolution-webcal-notify.c:  gtk_option_menu_set_history (GTK_OPTION_MENU (toption),
Comment 1 André Klapper 2009-04-28 08:50:01 UTC
Hmm. Can I trick Dobey into working on this?
Comment 2 ShuiYu 2009-10-02 15:27:39 UTC
Created attachment 144601 [details] [review]
modified source file, deprecated symbols of gtk removed
Comment 3 ShuiYu 2009-10-02 15:32:18 UTC
Created attachment 144602 [details]
I am sorry I just make a mistake. Upload again.

I am sorry I just make a mistake. Upload again.
It's my first contribution, I really hope that it would help.
Comment 4 ShuiYu 2009-10-02 15:34:07 UTC
Created attachment 144603 [details] [review]
still incorrect. try again...
Comment 5 André Klapper 2009-10-02 18:27:49 UTC
Hi, thanks for your patch!

1) Please use git commit and then "git format-patch HEAD^" to create patches.
2) Please keep the former indentation:
-static void e_webcal_change_adjustment (GtkMenuShell * shell,
-					GtkWidget * spinner) {
+static void e_webcal_change_adjustment (GtkComboBox * toption,
+                    GtkWidget * spinner) {
3) Please keep the code style (opening the brakets in the same line)
4) Is your patch tested?
Comment 6 ShuiYu 2009-10-06 13:31:46 UTC
Created attachment 144888 [details] [review]
patch to Remove-deprecated-GTK+-symbols

1), 2) and 3): OK, please see the attached patch.
4) Is your patch tested?
  ---- Yes, but I'm not sure it's fully tested or not. I just opened a webcal uri in console, setup the parameters, and checked that the subscription was successful.
Comment 7 André Klapper 2009-10-21 20:30:50 UTC
Dobey: ping - can this get a review?
Comment 8 André Klapper 2009-12-20 23:02:05 UTC
Dobey: ping - can this get a review?
Comment 9 André Klapper 2010-01-23 17:07:56 UTC
Dobey: ping - can this get a review?
Comment 10 André Klapper 2010-01-23 17:09:01 UTC
On a related note, also see a similar patch in Gedit today: http://git.gnome.org/browse/gedit/commit/?id=820ce8820a8db40eca5ca0b63f2d6e3a07416373
Comment 11 André Klapper 2010-03-09 16:22:08 UTC
After applying the patch here I can finally compile evolution-webcal with
-Werror-implicit-function-declaration -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES

Haven't tried functionality though.

(In reply to comment #6)
> I just opened a webcal uri in console

How exactly did you do that?
Comment 12 Cosimo Cecchi 2010-03-09 16:41:00 UTC
Review of attachment 144888 [details] [review]:

Thanks for the patch, I inlined some comments below.

::: src/evolution-webcal-notify.c
@@ +91,2 @@
 }
+static void e_webcal_change_adjustment (GtkComboBox * toption,

Could you please rename `toption' to something else here and below, as it's not a GtkOptionMenu anymore?

@@ +92,3 @@
+  if (toption != NULL) {
+                                       GtkWidget * spinner) {
+static void e_webcal_change_adjustment (GtkComboBox * toption,

I believe this if() here is useless, as you just got a signal emitted on that very instance.

@@ +463,3 @@
+  gtk_combo_box_append_text (GTK_COMBO_BOX (toption), _("Minute(s)"));
+  gtk_combo_box_append_text (GTK_COMBO_BOX (toption), _("Hour(s)"));
+  gtk_combo_box_append_text (GTK_COMBO_BOX (toption), _("Day(s)"));

Why did you change the strings here? If it's needed at all, it should belong in another, separate patch.

@@ +471,3 @@
   /* If the user changes the units of time, we want to update the spin
+                   G_CALLBACK (e_webcal_change_adjustment), tspinb);
+  g_signal_connect (GTK_COMBO_BOX (toption), "changed",

No need to cast to GTK_COMBO_BOX, g_signal_connect() takes a gpointer.
Comment 13 André Klapper 2010-04-08 10:53:13 UTC
ShuiYu: Willing to come up with an updated patch according to Cosimo's last comment (or too demotivated after waiting for a review for months)?
Comment 14 Roberto Guido 2010-04-13 14:57:16 UTC
Created attachment 158610 [details] [review]
Remove deprecated GTK+ symbols

Rework of the previous patch.
Better now?
Comment 15 Cosimo Cecchi 2010-04-14 12:46:24 UTC
Review of attachment 158610 [details] [review]:

Apart from this comment below, the patch looks fine now.

::: src/evolution-webcal-notify.c
@@ +93,3 @@
+                                       GtkWidget * spinner) {
+  switch (gtk_combo_box_get_active (combo)) {
+  case E_ICALSHARE_TIMEOUT_DAYS:

No need to change the indentation of these 'case' statements here.
Comment 16 André Klapper 2010-04-14 14:32:51 UTC
Cosimo, thanks for the review!
ShuiYu & Roberto, thanks for the patches!

I have committed this to git master: http://git.gnome.org/browse/evolution-webcal/commit/?id=f28289909e8af4405aa5cf63d6b12df8c4af2585
Comment 17 André Klapper 2010-04-14 14:35:09 UTC
Comment on attachment 158610 [details] [review]
Remove deprecated GTK+ symbols

(committed with the indentation fix recommended by Cosimo)