Commit 8f5839ad authored by Christian Persch's avatar Christian Persch Committed by Christian Persch

Use gtk_widget_get_action. Bug #500943.

2007-12-02  Christian Persch  <chpe@gnome.org>

	* src/glade-window.c: (menu_item_selected_cb),
	(ui_connect_proxy_cb): Use gtk_widget_get_action. Bug #500943.

svn path=/trunk/; revision=1648
parent ab167896
2007-12-02 Christian Persch <chpe@gnome.org>
* src/glade-window.c: (menu_item_selected_cb),
(ui_connect_proxy_cb): Use gtk_widget_get_action. Bug #500943.
2007-12-02 Christian Persch <chpe@gnome.org>
* src/main.c: (main): Use g_option_context_set_translation domain, and
......
......@@ -2315,13 +2315,12 @@ static GtkRadioActionEntry radio_entries[] = {
static guint n_radio_entries = G_N_ELEMENTS (radio_entries);
static void
menu_item_selected_cb (GtkItem *item, GladeWindow *window)
menu_item_selected_cb (GtkWidget *item, GladeWindow *window)
{
GtkAction *action;
gchar *tooltip;
action = GTK_ACTION (g_object_get_data (G_OBJECT (item), "action-for-proxy"));
action = gtk_widget_get_action (item);
g_object_get (G_OBJECT (action), "tooltip", &tooltip, NULL);
if (tooltip != NULL)
......@@ -2345,10 +2344,8 @@ ui_connect_proxy_cb (GtkUIManager *ui,
GladeWindow *window)
{
if (GTK_IS_MENU_ITEM (proxy))
{
g_object_set_data (G_OBJECT (proxy), "action-for-proxy", action);
g_signal_connect(G_OBJECT(proxy), "select",
{
g_signal_connect(G_OBJECT(proxy), "select",
G_CALLBACK (menu_item_selected_cb), window);
g_signal_connect(G_OBJECT(proxy), "deselect",
G_CALLBACK (menu_item_deselected_cb), window);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment