gnome-power-manager r3064 - in trunk: . applets/brightness applets/inhibit src
- From: rhughes svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-power-manager r3064 - in trunk: . applets/brightness applets/inhibit src
- Date: Tue, 4 Nov 2008 10:05:58 +0000 (UTC)
Author: rhughes
Date: Tue Nov 4 10:05:58 2008
New Revision: 3064
URL: http://svn.gnome.org/viewvc/gnome-power-manager?rev=3064&view=rev
Log:
2008-11-04 Richard Hughes <richard hughsie com>
* applets/brightness/brightness-applet.c:
(gpm_applet_dialog_about_cb), (gpm_applet_destroy_cb):
* applets/inhibit/inhibit-applet.c: (gpm_applet_dialog_about_cb),
(gpm_applet_destroy_cb):
Remove deprecated method calls in the applet code.
Modified:
trunk/ChangeLog
trunk/applets/brightness/brightness-applet.c
trunk/applets/inhibit/inhibit-applet.c
trunk/src/gpm-notify.c
Modified: trunk/applets/brightness/brightness-applet.c
==============================================================================
--- trunk/applets/brightness/brightness-applet.c (original)
+++ trunk/applets/brightness/brightness-applet.c Tue Nov 4 10:05:58 2008
@@ -767,7 +767,7 @@
_(license[2]), "\n\n", _(license[3]), "\n", NULL);
about = (GtkAboutDialog*) gtk_about_dialog_new ();
- gtk_about_dialog_set_name (about, GPM_BRIGHTNESS_APPLET_NAME);
+ gtk_about_dialog_set_program_name (about, GPM_BRIGHTNESS_APPLET_NAME);
gtk_about_dialog_set_version (about, VERSION);
gtk_about_dialog_set_copyright (about, _("Copyright \xc2\xa9 2006 Benjamin Canou"));
gtk_about_dialog_set_comments (about, GPM_BRIGHTNESS_APPLET_DESC);
@@ -784,7 +784,7 @@
gtk_widget_show (GTK_WIDGET(about));
g_free (license_trans);
- gdk_pixbuf_unref (logo);
+ g_object_unref (logo);
}
/**
@@ -828,7 +828,7 @@
g_object_unref (applet->monitor);
}
if (applet->icon != NULL) {
- gdk_pixbuf_unref (applet->icon);
+ g_object_unref (applet->icon);
}
}
Modified: trunk/applets/inhibit/inhibit-applet.c
==============================================================================
--- trunk/applets/inhibit/inhibit-applet.c (original)
+++ trunk/applets/inhibit/inhibit-applet.c Tue Nov 4 10:05:58 2008
@@ -437,7 +437,7 @@
_(license[2]), "\n\n", _(license[3]), "\n", NULL);
about = (GtkAboutDialog*) gtk_about_dialog_new ();
- gtk_about_dialog_set_name (about, GPM_INHIBIT_APPLET_NAME);
+ gtk_about_dialog_set_program_name (about, GPM_INHIBIT_APPLET_NAME);
gtk_about_dialog_set_version (about, VERSION);
gtk_about_dialog_set_copyright (about, _("Copyright \xc2\xa9 2006-2007 Richard Hughes"));
gtk_about_dialog_set_comments (about, GPM_INHIBIT_APPLET_DESC);
@@ -454,7 +454,7 @@
gtk_widget_show (GTK_WIDGET(about));
g_free (license_trans);
- gdk_pixbuf_unref (logo);
+ g_object_unref (logo);
}
/**
@@ -498,7 +498,7 @@
g_object_unref (applet->monitor);
}
if (applet->icon != NULL) {
- gdk_pixbuf_unref (applet->icon);
+ g_object_unref (applet->icon);
}
}
Modified: trunk/src/gpm-notify.c
==============================================================================
--- trunk/src/gpm-notify.c (original)
+++ trunk/src/gpm-notify.c Tue Nov 4 10:05:58 2008
@@ -56,7 +56,7 @@
struct GpmNotifyPrivate
{
GpmAcAdapter *ac_adapter;
- GConfClient *conf;
+ GConfClient *conf;
GtkStatusIcon *status_icon;
gchar *internet_url;
const gchar *do_not_show_gconf;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]