gtk+ r22198 - in trunk: . gtk
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r22198 - in trunk: . gtk
- Date: Fri, 23 Jan 2009 17:10:08 +0000 (UTC)
Author: matthiasc
Date: Fri Jan 23 17:10:08 2009
New Revision: 22198
URL: http://svn.gnome.org/viewvc/gtk+?rev=22198&view=rev
Log:
Fix pltcheck issues
Modified:
trunk/ChangeLog
trunk/gtk/gtkrecentchooser.c
trunk/gtk/gtkuimanager.c
Modified: trunk/gtk/gtkrecentchooser.c
==============================================================================
--- trunk/gtk/gtkrecentchooser.c (original)
+++ trunk/gtk/gtkrecentchooser.c Fri Jan 23 17:10:08 2009
@@ -1103,8 +1103,8 @@
GtkRecentAction *recent_action = GTK_RECENT_ACTION (action);
if (strcmp (property_name, "show-numbers") == 0 && recent_chooser_has_show_numbers (recent_chooser))
- gtk_recent_chooser_set_show_numbers (recent_chooser,
- gtk_recent_action_get_show_numbers (recent_action));
+ g_object_set (recent_chooser, "show-numbers",
+ gtk_recent_action_get_show_numbers (recent_action), NULL);
else if (strcmp (property_name, "show-private") == 0)
gtk_recent_chooser_set_show_private (recent_chooser, gtk_recent_chooser_get_show_private (action_chooser));
else if (strcmp (property_name, "show-not-found") == 0)
@@ -1134,8 +1134,9 @@
return;
if (recent_chooser_has_show_numbers (recent_chooser))
- gtk_recent_chooser_set_show_numbers (recent_chooser,
- gtk_recent_action_get_show_numbers (GTK_RECENT_ACTION (action)));
+ g_object_set (recent_chooser, "show-numbers",
+ gtk_recent_action_get_show_numbers (GTK_RECENT_ACTION (action)),
+ NULL);
gtk_recent_chooser_set_show_private (recent_chooser, gtk_recent_chooser_get_show_private (action_chooser));
gtk_recent_chooser_set_show_not_found (recent_chooser, gtk_recent_chooser_get_show_not_found (action_chooser));
gtk_recent_chooser_set_show_tips (recent_chooser, gtk_recent_chooser_get_show_tips (action_chooser));
Modified: trunk/gtk/gtkuimanager.c
==============================================================================
--- trunk/gtk/gtkuimanager.c (original)
+++ trunk/gtk/gtkuimanager.c Fri Jan 23 17:10:08 2009
@@ -31,6 +31,7 @@
#include "config.h"
#include <string.h>
+#include "gtkactivatable.h"
#include "gtkbuildable.h"
#include "gtkintl.h"
#include "gtkmarshalers.h"
@@ -2351,7 +2352,7 @@
}
}
- gtk_action_disconnect_proxy (info->action, info->proxy);
+ gtk_activatable_set_related_action (GTK_ACTIVATABLE (info->proxy), NULL);
gtk_container_remove (GTK_CONTAINER (info->proxy->parent),
info->proxy);
g_object_unref (info->proxy);
@@ -2416,7 +2417,7 @@
}
}
else
- gtk_action_connect_proxy (action, info->proxy);
+ gtk_activatable_set_related_action (GTK_ACTIVATABLE (info->proxy), action);
if (prev_submenu)
{
@@ -2559,7 +2560,7 @@
g_signal_handlers_disconnect_by_func (info->proxy,
G_CALLBACK (update_smart_separators),
NULL);
- gtk_action_disconnect_proxy (info->action, info->proxy);
+ gtk_activatable_set_related_action (GTK_ACTIVATABLE (info->proxy), NULL);
gtk_container_remove (GTK_CONTAINER (info->proxy->parent),
info->proxy);
g_object_unref (info->proxy);
@@ -2587,7 +2588,7 @@
G_CALLBACK (update_smart_separators),
NULL);
gtk_menu_item_set_submenu (GTK_MENU_ITEM (info->proxy), NULL);
- gtk_action_connect_proxy (action, info->proxy);
+ gtk_activatable_set_related_action (GTK_ACTIVATABLE (info->proxy), action);
}
if (info->proxy)
@@ -2611,7 +2612,7 @@
g_signal_handlers_disconnect_by_func (info->proxy,
G_CALLBACK (update_smart_separators),
NULL);
- gtk_action_disconnect_proxy (info->action, info->proxy);
+ gtk_activatable_set_related_action (GTK_ACTIVATABLE (info->proxy), NULL);
gtk_container_remove (GTK_CONTAINER (info->proxy->parent),
info->proxy);
g_object_unref (info->proxy);
@@ -2638,7 +2639,7 @@
g_signal_handlers_disconnect_by_func (info->proxy,
G_CALLBACK (update_smart_separators),
NULL);
- gtk_action_connect_proxy (action, info->proxy);
+ gtk_activatable_set_related_action (GTK_ACTIVATABLE (info->proxy), action);
}
if (info->proxy)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]