evolution-data-server r8905 - trunk/libedataserverui
- From: mbarnes svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r8905 - trunk/libedataserverui
- Date: Tue, 3 Jun 2008 19:15:51 +0000 (UTC)
Author: mbarnes
Date: Tue Jun 3 19:15:50 2008
New Revision: 8905
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=8905&view=rev
Log:
2008-06-03 Matthew Barnes <mbarnes redhat com>
* libedataserverui/e-source-option-menu.c:
Use g_object_get_data() instead of gtk_object_get_data().
Use g_object_set_data_full() instead of gtk_object_set_data_full().
Use gtk_menu_shell_append() instead of gtk_menu_append().
Modified:
trunk/libedataserverui/ChangeLog
trunk/libedataserverui/e-source-option-menu.c
Modified: trunk/libedataserverui/e-source-option-menu.c
==============================================================================
--- trunk/libedataserverui/e-source-option-menu.c (original)
+++ trunk/libedataserverui/e-source-option-menu.c Tue Jun 3 19:15:50 2008
@@ -61,7 +61,7 @@
select_source_foreach_menu_item (GtkWidget *menu_item,
ForeachMenuItemData *data)
{
- ESource *source = gtk_object_get_data (GTK_OBJECT (menu_item), MENU_ITEM_SOURCE_DATA_ID);
+ ESource *source = g_object_get_data (G_OBJECT (menu_item), MENU_ITEM_SOURCE_DATA_ID);
if (data->found_source)
return;
@@ -102,7 +102,7 @@
menu_item_activate_callback (GtkMenuItem *menu_item,
ESourceOptionMenu *option_menu)
{
- ESource *source = gtk_object_get_data (GTK_OBJECT (menu_item), MENU_ITEM_SOURCE_DATA_ID);
+ ESource *source = g_object_get_data (G_OBJECT (menu_item), MENU_ITEM_SOURCE_DATA_ID);
if (source != NULL)
select_source (option_menu, source);
@@ -158,14 +158,14 @@
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item2), gtk_image_new_from_pixmap (pixmap, NULL));
}
- gtk_object_set_data_full (GTK_OBJECT (item2), MENU_ITEM_SOURCE_DATA_ID, source,
- (GtkDestroyNotify) g_object_unref);
+ g_object_set_data_full (G_OBJECT (item2), MENU_ITEM_SOURCE_DATA_ID, source,
+ (GDestroyNotify) g_object_unref);
g_object_ref (source);
g_signal_connect (item2, "activate", G_CALLBACK (menu_item_activate_callback), option_menu);
gtk_widget_show (item2);
- gtk_menu_append (GTK_MENU (menu), item2);
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), item2);
if (first_source_item == -1) {
first_source_item = i;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]