porting ghex to GNOME 2.0



 Hi
   i was trying to port the  application ghex (hex editor)   to GNOME 2.0 .
   I did all the signal changes, related to gtk signals and also related to
   the GtkObject as per the porting guide.
   I am able to get the first menu on 2.0 also .(The print functions are
   commented for the  time being ).   But the application is failing
   when i try to load any file. The application is doing a core dump.
   The core dump happens in the " view_changed_cb" method in main.c file
   where the value  of the structure "uiinfo" i am getting as null. The code
   goes something like this ..

    GnomeApp *app;
    GnomeUIInfo *uiinfo;
    app = gnome_mdi_get_app_from_view(mdi->active_view);
    uiinfo = gnome_mdi_get_child_menu_info(app);

    do i need to use the GNOMEMDI interface or there are some other
interfaces
   defined for the GNOME 2.0?. The porting guide does not say  much on this
.
   Can somebody help and let me know the things to look for while porting
the
   MDI classes    to 2.0 .

   regards
   satya

-----------------------------------------------------------------------------------------------------------------------
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:mailadmin wipro com and delete this mail
from your records.
------------------------------------------------------------------------------------------------------------------------


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