Bug 68672

Summary: Can't create stock menu items
Product: [Retired] Red Hat Raw Hide Reporter: Tim Waugh <twaugh>
Component: glade2Assignee: Havoc Pennington <hp>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-07-17 10:25:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 67217    

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.