Re: GnomeUIInfo



On Monday, August 18, 2003, at 10:33  AM, Sylvain Daubert wrote:

Then, to unsensitive new item, i do :

my $widget = $info->[0]->{subtree}->[0]->{widget};
$widget->set_sensitive(0);

but $widget is not defined. Is something wrong, here ? Or, is back-annotation of widgets not implemented in Gnome2-Perl ?
I have tried to understand XS file, but i can't...

as i suspected, the plumbing was all there, but it just wasn't hooked up. *blush*

the fix is now in cvs; until the next release, you can get the functionality by applying the following three one-line changes:

Index: xs/GnomeAppHelper.xs
===================================================================
RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2/xs/GnomeAppHelper.xs,v
retrieving revision 1.4
diff -u -r1.4 GnomeAppHelper.xs
--- xs/GnomeAppHelper.xs        11 Jul 2003 05:02:17 -0000      1.4
+++ xs/GnomeAppHelper.xs        19 Aug 2003 01:11:44 -0000
@@ -290,7 +290,7 @@
        uibdata.destroy_func = NULL;
        gnome_app_fill_menu_custom (menu_shell, uiinfo, &uibdata,
                                    accel_group, uline_accels, pos);
-       /*refill_one*/
+       refill_infos (ST (1), uiinfo);


 #### void gnome_app_ui_configure_configurable (GnomeUIInfo* uiinfo)
@@ -325,7 +325,7 @@
                gnome_app_create_menus_custom (app, uiinfo, &uibdata);
        else
                gnome_app_create_toolbar_custom (app, uiinfo, &uibdata);
-       /*refill_one*/
+       refill_infos (ST (1), uiinfo);


## void gnome_app_fill_toolbar (GtkToolbar *toolbar, GnomeUIInfo *uiinfo, GtkAccelGroup *accel_group)
@@ -346,7 +346,7 @@
        uibdata.relay_func = NULL;
        uibdata.destroy_func = NULL;
gnome_app_fill_toolbar_custom (toolbar, uiinfo, &uibdata, accel_group);
-       /*refill_one*/
+       refill_infos (ST (2), uiinfo);


### void gnome_app_remove_menus (GnomeApp *app, const gchar *path, gint items)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]