Bug 68672 - Can't create stock menu items
Summary: Can't create stock menu items
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: glade2
Version: 1.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Havoc Pennington
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 67217
TreeView+ depends on / blocked
 
Reported: 2002-07-12 12:26 UTC by Tim Waugh
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-07-17 10:25:41 UTC
Embargoed:


Attachments (Terms of Use)

Description Tim Waugh 2002-07-12 12:26:57 UTC
Description of Problem: 
Glade-2 writes glade files that libglade2 doesn't understand.  In particular, although glade-2 
sets the 'stock' property of a GtkImageMenuItem when you pick a stock menu item, libglade2 
says: 
 
libglade-WARNING **: unknown property `stock' for class `GtkImageMenuItem' 
 
Version-Release number of selected component (if applicable): 
glade2-1.1.0.90-3 
libglade2-2.0.0-2 
 
How Reproducible: 
100% 
 
Steps to Reproduce: 
1. Use glade-2 to create a stock menu item. 
2. Try to use it. 
 
Actual Results: 
Warning. 
 
Expected Results: 
Functioning menu. 
 
Additional Information: 
Rather than trying to set the 'stock' property of the GtkImageMenuItem, I think that glade-2 
ought to be creating an internal child image GtkImage widget and setting *its* stock property.  
Like this: 
 
<widget class="GtkImageMenuItem" id="manual1"> 
  <property name="visible">yes</property> 
 
  <child internal-child="image"> 
    <widget class="GtkImage" id="convertwidget5"> 
      <property name="stock">gnome-stock-book-red</property> 
      <property name="visible">yes</property> 
    </widget> 
  </child> 
</widget>

Comment 1 Havoc Pennington 2002-07-12 13:41:11 UTC
This is fixed in upstream CVS - I need to pull new versions.

Comment 2 Tim Waugh 2002-07-17 10:25:37 UTC
This seems fixed in 1.1.0.91-1.


Note You need to log in before you can comment on or make changes to this bug.