After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 396161 - GtkUIManager crashing on unknown action in ui-file
GtkUIManager crashing on unknown action in ui-file
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Class: UIManager / Actions
2.10.x
Other All
: Normal major
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2007-01-13 16:56 UTC by Hans Breuer
Modified: 2007-01-14 05:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch mentioned above (830 bytes, patch)
2007-01-13 16:58 UTC, Hans Breuer
none Details | Review

Description Hans Breuer 2007-01-13 16:56:45 UTC
If an ui-file loaded by gtk_ui_manager_add_ui_from_file() has an action key not previously registered by gtk_action_group_add_action() there is a crash find_menu_position(). It can be easily avoided by the following patch.

If accepted the same should probably be done for find_toolbar_position().
Comment 1 Hans Breuer 2007-01-13 16:58:00 UTC
Created attachment 80187 [details] [review]
patch mentioned above
Comment 2 Matthias Clasen 2007-01-14 05:34:46 UTC
2007-01-13  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkuimanager.c: Don't crash if menu or toolbar
        positions can't be found.  (#396161, Hans Breuer)