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 562520 - Remove deprecated GTK+ symbols in gnome-applets
Remove deprecated GTK+ symbols in gnome-applets
Status: RESOLVED FIXED
Product: gnome-applets
Classification: Other
Component: general
git master
Other All
: Normal normal
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
Depends on:
Blocks: 585692
 
 
Reported: 2008-11-28 03:29 UTC by Maxim Ermilov
Modified: 2010-05-02 15:06 UTC
See Also:
GNOME target: 3.0
GNOME version: Unversioned Enhancement


Attachments
patch for this bug (11.74 KB, patch)
2008-11-28 03:31 UTC, Maxim Ermilov
committed Details | Review

Description Maxim Ermilov 2008-11-28 03:29:45 UTC
I'm working on implementing
http://live.gnome.org/GnomeGoals/RemoveDeprecatedSymbols/GTK%2B
Comment 1 Maxim Ermilov 2008-11-28 03:31:34 UTC
Created attachment 123585 [details] [review]
patch for this bug
Comment 2 André Klapper 2009-01-25 21:39:10 UTC
ping
Comment 3 Callum McKenzie 2009-01-25 21:57:54 UTC
Unfortunately this bug is already obsolete. The patches from 562333 already cover this (the last of them was fixed up last night). Sorry for not spotting this sooner.

*** This bug has been marked as a duplicate of 562333 ***
Comment 4 Callum McKenzie 2009-01-25 22:06:40 UTC
Slight lie there, a couple of changes weren't picked up by the 562333 patches (they were aimed at libgnome removal, not deprecation - they aren't quite the same things). I've applied them now.
Comment 5 Thomas Andersen 2009-02-16 17:35:49 UTC
Grep still shows the following deprecated gtk symbols in gnome-applets:

gnome-applets/mini-commander/src/command_line.c:315:     gtk_window_set_policy(GTK_WINDOW(window), 0, 0, 1);
gnome-applets/mini-commander/src/command_line.c:320:			      GTK_SIGNAL_FUNC(history_popup_clicked_cb),
gnome-applets/mini-commander/src/command_line.c:326:     gtk_widget_set_usize(GTK_WIDGET(window), 200, 350);
gnome-applets/mini-commander/src/command_line.c:343:			GTK_SIGNAL_FUNC(history_popup_clicked_inside_cb),
gnome-applets/mini-commander/src/command_line.c:510:    mc->entry = gtk_entry_new_with_max_length (MC_MAX_COMMAND_LENGTH); 
gnome-applets/gswitchit/gswitchit-applet.c:248:	    GTK_BUILDER (gtk_object_get_data
gnome-applets/gswitchit/gswitchit-applet.c:367:	gtk_object_set_data (GTK_OBJECT (dialog), "builderData", builder);
gnome-applets/gswitchit/gswitchit-applet.c:389:	gtk_object_set_data (GTK_OBJECT (dialog), "kbdraw", kbdraw);
gnome-applets/gswitchit/gswitchit-applet.c:668:	gtk_object_set_data (GTK_OBJECT (sia->applet), "sia", sia);
gnome-applets/geyes/geyes.c:43:        gtk_rc_style_unref (rc_style);
gnome-applets/geyes/geyes.c:302:	gtk_timeout_remove (eyes_applet->timeout_id);
gnome-applets/geyes/geyes.c:393:        eyes_applet->timeout_id = gtk_timeout_add (
gnome-applets/battstat/battstat_applet.c:1563:  gtk_widget_ref( battstat->status );
gnome-applets/battstat/battstat_applet.c:1564:  gtk_widget_ref( battstat->percent );
gnome-applets/battstat/battstat_applet.c:1565:  gtk_widget_ref( battstat->battery );
gnome-applets/battstat/battstat_applet.c:1566:  gtk_object_sink( GTK_OBJECT( battstat->status ) );
gnome-applets/battstat/battstat_applet.c:1567:  gtk_object_sink( GTK_OBJECT( battstat->percent ) );
gnome-applets/battstat/battstat_applet.c:1568:  gtk_object_sink( GTK_OBJECT( battstat->battery ) );
gnome-applets/battstat/power-management.c:122:  gtk_box_pack_start_defaults( box, gtk_label_new( "percent" ) );
gnome-applets/battstat/power-management.c:127:  gtk_box_pack_start_defaults( box, w );
gnome-applets/battstat/power-management.c:129:  gtk_box_pack_start_defaults( box, gtk_label_new( "minutes" ) );
gnome-applets/battstat/power-management.c:134:  gtk_box_pack_start_defaults( box, w );
gnome-applets/battstat/power-management.c:141:  gtk_box_pack_start_defaults( box, w );
gnome-applets/battstat/power-management.c:146:  gtk_box_pack_start_defaults( box, w );
gnome-applets/battstat/power-management.c:152:  gtk_box_pack_start_defaults( box, w );
gnome-applets/gweather/gweather-applet.c:282:       gtk_timeout_remove(gw_applet->timeout_tag);
gnome-applets/gweather/gweather-applet.c:287:       gtk_timeout_remove(gw_applet->suncalc_timeout_tag);
gnome-applets/gweather/gweather-applet.c:397:        gtk_timeout_remove(gw_applet->timeout_tag);
gnome-applets/gweather/gweather-applet.c:401:		gtk_timeout_add (
gnome-applets/gweather/gweather-applet.c:408:                        gtk_timeout_add (nxtSunEvent * 1000,
gnome-applets/gweather/gweather-pref.c:343:        gtk_timeout_remove(gw_applet->timeout_tag);
gnome-applets/gweather/gweather-pref.c:345:        gtk_timeout_remove(gw_applet->suncalc_timeout_tag);
gnome-applets/gweather/gweather-pref.c:347:        gw_applet->timeout_tag = gtk_timeout_add (
gnome-applets/gweather/gweather-pref.c:352:	    gw_applet->suncalc_timeout_tag = gtk_timeout_add (
gnome-applets/gweather/gweather-pref.c:548:        gtk_timeout_remove(gw_applet->timeout_tag);
gnome-applets/gweather/gweather-pref.c:551:        	gtk_timeout_add (gw_applet->gweather_pref.update_interval * 1000,
gnome-applets/gweather/gweather-dialog.c:554:      gtk_widget_set_usize(radar_link_btn, 450, -2);
gnome-applets/mixer/applet.c:963:  gtk_rc_style_unref (rc_style);
gnome-applets/modemlights/modem-applet.c:269:  gtk_rc_style_unref (rc_style);
gnome-applets/modemlights/modem-applet.c:463:      priv->progress_id = gtk_timeout_add (200, (GSourceFunc) pulse_progressbar, priv->report_window_progress);
gnome-applets/accessx-status/applet.c:1179:        gtk_rc_style_unref (rc_style);
gnome-applets/stickynotes/stickynotes_applet_callbacks.c:213:	gtk_rc_style_unref (rc_style);
Comment 6 Sergey V. Udaltsov 2009-02-16 22:18:12 UTC
fixed the gswitchit part
Comment 7 Callum McKenzie 2009-02-16 23:48:32 UTC
I've fixed the rest up. What I don't understand is why -DGTK_DISABLE_DEPRECATED didn't pick these up. Curious.
Comment 8 Thomas Andersen 2009-02-17 00:05:07 UTC
still one left: :(
gnome-applets/mini-commander/src/command_line.c:510:    mc->entry = gtk_entry_new_with_max_length ();

Also bug #570740 is closely related and the patch should not take long to review. It would be great to have that fixed as well :)
Comment 9 Callum McKenzie 2009-02-17 00:19:20 UTC
Oops, added the extra function call needed, but didn't change the constructor. Fixed.

570740 is one of two bugs I want to close before rolling the next tarball. It should be closed soon.
Comment 10 Thomas Andersen 2009-02-17 00:21:44 UTC
You rock :)

with 570740 gnome-applets can be marked as done for the deprecated GTK symbols goal.
Comment 11 André Klapper 2010-04-12 16:40:44 UTC
Reopening because of GTK_WIDGET_TOPLEVEL usage:
./sound-theme/gvc-sound-theme-editor.c:
  if (GTK_WIDGET_TOPLEVEL (toplevel) != FALSE)
Comment 12 André Klapper 2010-05-02 15:06:40 UTC
Fixed by other commits already.