GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Fri Nov 28, 2014 8:32 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Widget name address out bounds=>can't set text[SOLVED]
PostPosted: Sat Jul 07, 2007 4:21 pm 
Offline
Familiar Face

Joined: Mon Jul 02, 2007 6:32 pm
Posts: 6
I'm having a problem populating some GtkEntry widgets. I'm not by any stretch of the imagination a C/GTK+ developer, so the problem is likely intuitively obvious. In any event, a kick in the kiester down the right path would be much appreciated.

The GtkEntry is declared in a header:

GtkEntry *part_num;

The GtkEntry is created in code where the layout is a Glade object:

usage_layout = glade_xml_get_widget (gxml, "usage_layout");

<...>

part_num = gtk_entry_new();
gtk_widget_set_size_request(part_num, 200, 25);
gtk_layout_put(usage_layout, part_num, 200, 5);

When the program is executed and calls gtk_entry_set_text, it seg faults. Taking a look at things in gdb, I'm guessing the problem is this --> name = 0x1011a1a1a1a1a01 <Address 0x1011a1a1a1a1a01 out of bounds>. If I look at the next frame and p *part_num, the results are the same, so I'm passing bad information to the gtk_entry_set_text function.

#0 0x00002ae699549ea1 in IA__gtk_entry_set_text (entry=0xd51530, text=0xe4d110 "GA-M55plus-S3G")
at gtkentry.c:4202
4202 gtkentry.c: No such file or directory.
in gtkentry.c
(gdb) p *entry
$1 = {widget = {object = {parent_instance = {g_type_instance = {g_class = 0xc0c0cdc0c0cdc0c0},
ref_count = 4097, qdata = 0xd52540}, flags = 0}, private_flags = 274, state = 1 '\001',
saved_state = 1 '\001', name = 0x1011a1a1a1a1a01 <Address 0x1011a1a1a1a1a01 out of bounds>,
style = 0x101010101010101, requisition = {width = 16843009, height = 16843009}, allocation = {
x = 186714138, y = 168886530, width = 18153729, height = 336593153},
window = 0xe0e0e0e0e0e0e0e, parent = 0x108080916170e0e},
text = 0x2020202021f0218 <Address 0x2020202021f0218 out of bounds>, editable = 0, visible = 1,
overwrite_mode = 0, in_drag = 0, text_length = 514, text_max_length = 514,
text_area = 0x202020202020202, im_context = 0x20101130102021e, popup_menu = 0x2020202021f021b,
current_pos = 33686018, selection_bound = 35652098, cached_layout = 0x202020202020202,
cache_includes_preedit = 0, need_im_reset = 1, has_frame = 1, activates_default = 1,
cursor_visible = 1, in_click = 0, is_cell_renderer = 0, editing_canceled = 0,
mouse_cursor_obscured = 0, select_words = 1, select_lines = 0, resolved_dir = 0,
truncate_multiline = 0, button = 16843025, blink_timeout = 16843009, recompute_idle = 16843009,
scroll_offset = 16843009, ascent = 16843009, descent = 16843009, text_size = 257, n_bytes = 257,
preedit_length = 257, preedit_cursor = 257, dnd_position = 16843009, drag_start_x = 33686017,
drag_start_y = 33686018, invisible_char = 33686018, width_chars = 33686018}

There are 16 GtkEntry widgets on three different layouts and this problem occurs with one GtkEntry on each layout. Commenting the line that sets the text in those three and things work fine (well, except the data isn't being displayed).

I've Googled as best I can, but haven't found anything useful to me. I'm sure the answer is out there and I'm just not formulating my Google queries to find the right thing.

TIA

Andrew


Last edited by weibullguy on Sat Aug 11, 2007 4:17 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 07, 2007 6:33 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
Can you post your source code and glade file?

_________________
Micah Carrick - Forum Administrator
http://www.micahcarrick.com


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 07, 2007 6:52 pm 
Offline
Familiar Face

Joined: Mon Jul 02, 2007 6:32 pm
Posts: 6
If this is OK, you can browse everything in trunk --> http://reliafree.svn.sourceforge.net/viewvc/reliafree. If not, I will post the code here.

The offending code is in the following files and functions:

file: system_tree.c, function: system_tree_clicked_cb
file: general_tab.c, function: populate_general_tab

The GtkEntry widgets are created in:

file: general_tab.c, function: initialize_general_tab

The glade file is in the glade subdirectory, Any other suggestions or positive criticisms are welcome as well, just be gentle.

Thanks again,

Andrew


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 10, 2007 8:46 pm 
Offline
Familiar Face

Joined: Mon Jul 02, 2007 6:32 pm
Posts: 6
I've included the code and my Glade file. I've omitted some of the code in each function for brevity.

The layout widgets are initialized and the GtkEntry widgets are created/positioned in the following function.
Code:
gboolean
initialize_general_tab(GtkWidget *widget)
{

    const char *string1 = "/root/components/type/@name";
    const char *string2 = "/root/hr_method/@name";
    const char *string3 = "/root/hr_model/@name";
    const char *string4 = "/root/mttr_method/@name";
    const char *string5 = "/root/vendor/@name"

    usage_layout = glade_xml_get_widget (gxml, "usage_layout");
    model_layout = glade_xml_get_widget (gxml, "model_layout");
    vendor_layout = glade_xml_get_widget (gxml, "vendor_layout");

     /* Create text entry boxes on the usage layout. */
    part_num = gtk_entry_new();
    gtk_widget_set_size_request(part_num, 200, 25);
    gtk_layout_put(usage_layout, part_num, 200, 5);

    ref_des = gtk_entry_new();
    gtk_widget_set_size_request(ref_des, 200, 25);
    gtk_layout_put(usage_layout, ref_des, 200, 35);

    <...SNIP...>

    /* Create text entry boxes on the model layout. */
    hr_spec = gtk_entry_new();
    gtk_widget_set_size_request(hr_spec, 100, 25);
    gtk_layout_put(model_layout, hr_spec, 200, 75);

    mttr_spec = gtk_entry_new();
    gtk_widget_set_size_request(mttr_spec, 100, 25);
    gtk_layout_put(model_layout, mttr_spec, 200, 140);

    <...SNIP...>

    /* Create text entry boxes on the vendor layout. */
    alternate_pn = gtk_entry_new();
    gtk_widget_set_size_request(alternate_pn, 100, 25);
    gtk_layout_put(vendor_layout, alternate_pn, 200, 40);

    spec_number = gtk_entry_new();
    gtk_widget_set_size_request(spec_number, 100, 25);
    gtk_layout_put(vendor_layout, spec_number, 200, 70);

    figure_number = gtk_entry_new();
    gtk_widget_set_size_request(figure_number, 100, 25);
    gtk_layout_put(vendor_layout, figure_number, 200, 100);

    <...SNIP...>

    /*
     * Create and populate the combo boxes.  The list items in
     * these are the same whether an assembly or a part is
     * being viewed.
     */

    /* Populate the part classification combo box. */
    part_type = gtk_combo_box_new_text();
    gtk_widget_set_size_request(part_type, 200, 30);
    gtk_layout_put(usage_layout, part_type, 200, 95);

    if(!load_combo(GTK_COMBO_BOX(part_type), string1))
    {
        printf( "Error loading part type combo box.\n" );
        return FALSE;
    }

    g_signal_connect(G_OBJECT(part_type), "changed",
                     G_CALLBACK(load_part_subtype_combo) ,NULL);

    gtk_combo_box_set_active(part_type, 0);

    /* Load the hazard rate source choices into the appropriate combo box. */
    hr_source = gtk_combo_box_new_text();
    gtk_widget_set_size_request(hr_source, 200, 30);
    gtk_layout_put(model_layout, hr_source, 200, 0);

    if(!load_combo(GTK_COMBO_BOX(hr_source), string2))
    {
        printf("Error loading hazard rate source combo box.\n");
        return FALSE;
    }

    gtk_combo_box_set_active(hr_source, 0);

    <...SNIP...>

    gtk_widget_show_all(usage_layout);
    gtk_widget_show_all(model_layout);
    gtk_widget_show_all(vendor_layout);

    return TRUE;

}


This is the function that responds to mouse clicks on a GtkTreeView widget. The information from the selected row is used to populate the GtkEntry and GtkComboBox widgets created in the function above.
Code:
void
system_tree_clicked_cb(GtkTreeView *tree,
                                   GdkEventButton *butt)
{

    GtkTreeIter iter;
    GtkTreeSelection *selection;

    SELECTED_TREE = 1;

    switch (butt->button)
    {
        case (1):

            selection = gtk_tree_view_get_selection(sys_tree);

            if (gtk_tree_selection_get_selected(selection, NULL, &iter))
            {
                GtkTreePath *path = gtk_tree_model_get_path(GTK_TREE_MODEL(sys_store), &iter);

            /*
             * Get the selected item's information from the tree.
             * Then populate the parts list and the general tab.
             */
            if (gtk_tree_model_get_iter(GTK_TREE_MODEL(sys_store), &iter, path))
            {

                const gchar *strptr[11];
                double dblptr[4];
                int intptr[5];
      
                gtk_tree_model_get(GTK_TREE_MODEL(sys_store), &iter,
                               COLUMN_PN, &strptr[0],
                               COLUMN_REFDES, &strptr[1],
                               COLUMN_COMPREFDES, &strptr[2],
                               COLUMN_DESC, &strptr[3],
                               COLUMN_ALTPN, &strptr[4],
                               COLUMN_SPECNUM, &strptr[5],
                               COLUMN_FIGNUM, &strptr[6],
                               COLUMN_PAGENUM, &strptr[7],
                               COLUMN_NSN, &strptr[8],
                               COLUMN_CAGE, &strptr[9],
                               COLUMN_LCN, &strptr[10],
                               COLUMN_MAN, &intptr[0],
                               COLUMN_QUANT, &intptr[1],
                               COLUMN_HRSRC, &intptr[2],
                               COLUMN_MTTRSRC, &intptr[3],
                               COLUMN_ID, &intptr[4],
                               COLUMN_HR, &dblptr[0],
                               COLUMN_MTTR, &dblptr[1],
                               COLUMN_MADJ, &dblptr[2],
                               COLUMN_AADJ, &dblptr[3],
                               -1);

               SELECTED_ASSEMBLY = intptr[4];
               populate_part_list(SELECTED_ASSEMBLY);

               if (!populate_general_tab(strptr, dblptr, 20, intptr))
               {
                   printf("Error populating the general tab.\n");
               }

        <...SNIP...>


This is the function that uses the information passed via the arrays to display the appropriate information in the GtkEntry and GtkComboBox widgets. The commented lines are the widgets that give me the errors from my original post.
Code:
gboolean
populate_general_tab(const gchar *strptr[],
                     double      dblptr[],
                     int         n,
                     int         intptr[])
{

    char *string=NULL;

    /* Populate the usage information. */
    /*gtk_entry_set_text(part_num, strptr[0]);*/
    gtk_entry_set_text(ref_des, strptr[1]);

    <...SNIP...>

    /* Populate the vendor information. */
    gtk_entry_set_text(alternate_pn, strptr[4]);
    gtk_entry_set_text(spec_number, strptr[5]);
    /*gtk_entry_set_text(figure_number, strptr[6]);*/
    gtk_entry_set_text(page_number, strptr[7]);

    <...SNIP...>

    gtk_combo_box_set_active(manufacturer, intptr[0]);

    /* Populate the model information. */
    gtk_combo_box_set_active(hr_source, intptr[2]);

    <...SNIP...>

    return TRUE;

}


This is the Glade file.[code]<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">

<glade-interface>

<widget class="GtkWindow" id="frmReliaFree">
<property name="visible">True</property>
<property name="has_default">True</property>
<property name="events">GDK_BUTTON_PRESS_MASK | GDK_STRUCTURE_MASK</property>
<property name="title" translatable="yes">ReliaFree</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_CENTER</property>
<property name="modal">False</property>
<property name="default_width">1250</property>
<property name="default_height">1000</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">True</property>
<property name="decorated">True</property>
<property name="skip_taskbar_hint">False</property>
<property name="skip_pager_hint">False</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
<property name="focus_on_map">True</property>

<child>
<widget class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>

<child>
<widget class="GtkMenuBar" id="menubar1">
<property name="visible">True</property>

<child>
<widget class="GtkMenuItem" id="menuitem1">
<property name="visible">True</property>
<property name="label" translatable="yes">_File</property>
<property name="use_underline">True</property>

<child>
<widget class="GtkMenu" id="menu1">
<property name="visible">True</property>

<child>
<widget class="GtkImageMenuItem" id="imagemenuitem1">
<property name="visible">True</property>
<property name="label">gtk-new</property>
<property name="use_stock">True</property>
</widget>
</child>

<child>
<widget class="GtkImageMenuItem" id="imagemenuitem2">
<property name="visible">True</property>
<property name="label">gtk-open</property>
<property name="use_stock">True</property>
</widget>
</child>

<child>
<widget class="GtkImageMenuItem" id="imagemenuitem3">
<property name="visible">True</property>
<property name="label">gtk-save</property>
<property name="use_stock">True</property>
</widget>
</child>

<child>
<widget class="GtkImageMenuItem" id="imagemenuitem4">
<property name="visible">True</property>
<property name="label">gtk-save-as</property>
<property name="use_stock">True</property>
</widget>
</child>

<child>
<widget class="GtkSeparatorMenuItem" id="separatormenuitem1">
<property name="visible">True</property>
</widget>
</child>

<child>
<widget class="GtkImageMenuItem" id="imagemenuitem5">
<property name="visible">True</property>
<property name="label">gtk-quit</property>
<property name="use_stock">True</property>
</widget>
</child>
</widget>
</child>
</widget>
</child>

<child>
<widget class="GtkMenuItem" id="menuitem2">
<property name="visible">True</property>
<property name="label" translatable="yes">_Edit</property>
<property name="use_underline">True</property>

<child>
<widget class="GtkMenu" id="menu2">
<property name="visible">True</property>

<child>
<widget class="GtkImageMenuItem" id="imagemenuitem6">
<property name="visible">True</property>
<property name="label">gtk-cut</property>
<property name="use_stock">True</property>
</widget>
</child>

<child>
<widget class="GtkImageMenuItem" id="imagemenuitem7">
<property name="visible">True</property>
<property name="label">gtk-copy</property>
<property name="use_stock">True</property>
</widget>
</child>

<child>
<widget class="GtkImageMenuItem" id="imagemenuitem8">
<property name="visible">True</property>
<property name="label">gtk-paste</property>
<property name="use_stock">True</property>
</widget>
</child>

<child>
<widget class="GtkImageMenuItem" id="imagemenuitem9">
<property name="visible">True</property>
<property name="label">gtk-delete</property>
<property name="use_stock">True</property>
</widget>
</child>
</widget>
</child>
</widget>
</child>

<child>
<widget class="GtkMenuItem" id="menuitem3">
<property name="visible">True</property>
<property name="label" translatable="yes">_View</property>
<property name="use_underline">True</property>
</widget>
</child>

<child>
<widget class="GtkMenuItem" id="menuitem4">
<property name="visible">True</property>
<property name="label" translatable="yes">_Help</property>
<property name="use_underline">True</property>

<child>
<widget class="GtkMenu" id="menu3">
<property name="visible">True</property>

<child>
<widget class="GtkImageMenuItem" id="imagemenuitem10">
<property name="visible">True</property>
<property name="label">gtk-about</property>
<property name="use_stock">True</property>
</widget>
</child>
</widget>
</child>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">True</property>
</packing>
</child>

<child>
<widget class="GtkToolbar" id="toolbar1">
<property name="visible">True</property>
<property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
<property name="toolbar_style">GTK_TOOLBAR_BOTH</property>
<property name="tooltips">True</property>
<property name="show_arrow">True</property>

<child>
<widget class="GtkToggleToolButton" id="toggle_connect">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Connect to program database...</property>
<property name="stock_id">gtk-connect</property>
<property name="visible_horizontal">True</property>
<property name="visible_vertical">True</property>
<property name="is_important">False</property>
<property name="active">False</property>
</widget>
<packing>
<property name="expand">False</property>
<property name="homogeneous">True</property>
</packing>
</child>

<child>
<widget class="GtkSeparatorToolItem" id="separatortoolitem2">
<property name="visible">True</property>
<property name="draw">True</property>
<property name="visible_horizontal">True</property>
<property name="visible_vertical">True</property>
</widget>
<packing>
<property name="expand">False</property>
<property name="homogeneous">False</property>
</packing>
</child>

<child>
<widget class="GtkMenuToolButton" id="menubtnInsert">
<property name="visible">True</property>
<property name="label">Insert</property>
<property name="use_underline">True</property>
<property name="stock_id">gtk-add</property>
<property name="visible_horizontal">True</property>
<property name="visible_vertical">True</property>
<property name="is_important">False</property>
</widget>
<packing>
<property name="expand">False</property>
<property name="homogeneous">False</property>
</packing>
</child>

<child>
<widget class="GtkMenuToolButton" id="menubtnDelete">
<property name="visible">True</property>
<property name="label">Delete</property>
<property name="use_underline">True</property>
<property name="stock_id">gtk-delete</property>
<property name="visible_horizontal">True</property>
<property name="visible_vertical">True</property>
<property name="is_important">False</property>
</widget>
<packing>
<property name="expand">False</property>
<property name="homogeneous">False</property>
</packing>
</child>

<child>
<widget class="GtkSeparatorToolItem" id="separatortoolitem1">
<property name="visible">True</property>
<property name="draw">True</property>
<property name="visible_horizontal">True</property>
<property name="visible_vertical">True</property>
</widget>
<packing>
<property name="expand">False</property>
<property name="homogeneous">False</property>
</packing>
</child>

<child>
<widget class="GtkToolButton" id="toolbutton_apply">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Commit changes to the database...</property>
<property name="label">Commit</property>
<property name="use_underline">True</property>
<property name="stock_id">gtk-apply</property>
<property name="visible_horizontal">True</property>
<property name="visible_vertical">True</property>
<property name="is_important">False</property>
</widget>
<packing>
<property name="expand">False</property>
<property name="homogeneous">True</property>
</packing>
</child>

<child>
<widget class="GtkToolButton" id="toolbutton_cancel">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Do not commit changes to the database...</property>
<property name="stock_id">gtk-cancel</property>
<property name="visible_horizontal">True</property>
<property name="visible_vertical">True</property>
<property name="is_important">False</property>
</widget>
<packing>
<property name="expand">False</property>
<property name="homogeneous">True</property>
</packing>
</child>

<child>
<widget class="GtkToolButton" id="toolbutton_edit">
<property name="visible">True</property>
<property name="stock_id">gtk-edit</property>
<property name="visible_horizontal">True</property>
<property name="visible_vertical">True</property>
<property name="is_important">False</property>
</widget>
<packing>
<property name="expand">False</property>
<property name="homogeneous">True</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>

<child>
<widget class="GtkVPaned" id="vpaned1">
<property name="visible">True</property>
<property name="can_focus">True</property>

<child>
<widget class="GtkHPaned" id="hpaned2">
<property name="height_request">150</property>
<property name="visible">True</property>
<property name="can_focus">True</property>

<child>
<widget class="GtkScrolledWindow" id="system_tree_scroll_window">
<property name="width_request">600</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property>
<property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property>
<property name="shadow_type">GTK_SHADOW_IN</property>
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>

<child>
<widget class="GtkTreeView" id="tree_System">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Indentured display of the currently selected system tree...</property>
<property name="can_focus">True</property>
<property name="headers_visible">True</property>
<property name="rules_hint">False</property>
<property name="reorderable">False</property>
<property name="enable_search">True</property>
<property name="fixed_height_mode">False</property>
<property name="hover_selection">False</property>
<property name="hover_expand">False</property>
</widget>
</child>
</widget>
<packing>
<property name="shrink">False</property>
<property name="resize">False</property>
</packing>
</child>

<child>
<widget class="GtkScrolledWindow" id="function)scroll_window">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property>
<property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property>
<property name="shadow_type">GTK_SHADOW_IN</property>
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>

<child>
<widget class="GtkTreeView" id="tree_functions">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="headers_visible">True</property>
<property name="rules_hint">False</property>
<property name="reorderable">False</property>
<property name="enable_search">True</property>
<property name="fixed_height_mode">False</property>
<property name="hover_selection">False</property>
<property name="hover_expand">False</property>
</widget>
</child>
</widget>
<packing>
<property name="shrink">True</property>
<property name="resize">True</property>
</packing>
</child>
</widget>
<packing>
<property name="shrink">False</property>
<property name="resize">False</property>
</packing>
</child>

<child>
<widget class="GtkHPaned" id="hpaned1">
<property name="visible">True</property>
<property name="can_focus">True</property>

<child>
<widget class="GtkScrolledWindow" id="part_list_scroll_window">
<property name="width_request">250</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property>
<property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property>
<property name="shadow_type">GTK_SHADOW_NONE</property>
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>

<child>
<widget class="GtkTreeView" id="tree_Parts">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">List of parts for the currently selected assembly in the system tree ...</property>
<property name="can_focus">True</property>
<property name="headers_visible">True</property>
<property name="rules_hint">False</property>
<property name="reorderable">True</property>
<property name="enable_search">True</property>
<property name="fixed_height_mode">False</property>
<property name="hover_selection">False</property>
<property name="hover_expand">False</property>
</widget>
</child>
</widget>
<packing>
<property name="shrink">False</property>
<property name="resize">False</property>
</packing>
</child>

<child>
<widget class="GtkNotebook" id="notebook_main">
<property name="visible">True</property>
<property name="show_tabs">True</property>
<property name="show_border">True</property>
<property name="tab_pos">GTK_POS_TOP</property>
<property name="scrollable">True</property>
<property name="enable_popup">True</property>

<child>
<widget class="GtkScrolledWindow" id="general_data_scroll_window">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property>
<property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property>
<property name="shadow_type">GTK_SHADOW_NONE</property>
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>

<child>
<widget class="GtkViewport" id="view_port_general_data">
<property name="visible">True</property>
<property name="shadow_type">GTK_SHADOW_IN</property>

<child>
<widget class="GtkFixed" id="fixed_general_data_container">
<property name="visible">True</property>

<child>
<widget class="GtkFrame" id="frame_model">
<property name="width_request">440</property>
<property name="height_request">330</property>
<property name="visible">True</property>
<property name="label_xalign">0</property>
<property name="label_yalign">0.5</property>
<property name="shadow_type">GTK_SHADOW_ETCHED_OUT</property>

<child>
<widget class="GtkAlignment" id="model_information_alignment">
<property name="visible">True</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xscale">1</property>
<property name="yscale">1</property>
<property name="top_padding">0</property>
<property name="bottom_padding">0</property>
<property name="left_padding">12</property>
<property name="right_padding">0</property>

<child>
<widget class="GtkScrolledWindow" id="scrolledwindow12">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property>
<property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property>
<property name="shadow_type">GTK_SHADOW_NONE</property>
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>

<child>
<widget class="GtkLayout" id="model_layout">
<property name="visible">True</property>
<property name="width">400</property>
<property name="height">400</property>
<property name="hadjustment">0 0 406 10 365.4 406</property>
<property name="vadjustment">0 0 400 10 263.7 293</property>

<child>
<widget class="GtkLabel" id="label13">
<property name="width_request">190</property>
<property name="height_request">25</property>
<property name="visible">True</property>
<property name="label" translatable="yes">Hazard Rate Source:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_RIGHT</property>
<property name="wrap">True</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="x">5</property>
<property name="y">5</property>
</packing>
</child>

<child>
<widget class="GtkLabel" id="label12">
<property name="width_request">190</property>
<property name="height_request">25</property>
<property name="visible">True</property>
<property name="label" translatable="yes">Hazard Rate Model:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_RIGHT</property>
<property name="wrap">True</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="x">5</property>
<property name="y">40</property>
</packing>
</child>

<child>
<widget class="GtkLabel" id="label16">
<property name="width_request">190</property>
<property name="height_request">25</property>
<property name="visible">True</property>
<property name="label" translatable="yes">Hazard Rate:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_RIGHT</property>
<property name="wrap">True</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="x">5</property>
<property name="y">75</property>
</packing>
</child>

<child>
<widget class="GtkLabel" id="label14">
<property name="width_request">190</property>
<property name="height_request">25</property>
<property name="visible">True</property>
<property name="label" translatable="yes">MTTR Source:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_RIGHT</property>
<property name="wrap">True</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="x">5</property>
<property name="y">105</property>
</packing>
</child>

<child>
<widget class="GtkLabel" id="label18">
<property name="width_request">190</property>
<property name="height_request">25</property>
<property name="visible">True</property>
<property name="label" translatable="yes">MTTR:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_RIGHT</property>
<property name="wrap">True</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="x">5</property>
<property name="y">140</property>
</packing>
</child>

<child>
<widget class="GtkLabel" id="label15">
<property name="width_request">190</property>
<property name="height_request">25</property>
<property name="visible">True</property>
<property name="label" translatable="yes">Multiplicative Adjustment:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_RIGHT</property>
<property name="wrap">True</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="x">5</property>
<property name="y">170</property>
</packing>
</child>

<child>
<widget class="GtkLabel" id="label17">
<property name="width_request">190</property>
<property name="height_request">25</property>
<property name="visible">True</property>
<property name="label" translatable="yes">Additive Adjustment:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_RIGHT</property>
<property name="wrap">True</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="x">5</property>
<property name="y">200</property>
</packing>
</child>
</widget>
</child>
</widget>
</child>
</widget>
</child>

<child>
<widget class="GtkLabel" id="label19">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Modeling Information&lt;/b&gt;</property>
<property name="use_underline">True</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="type">label_item</property>
</packing>
</child>
</widget>
<packing>
<property name="x">460</property>
<property name="y">10</property>
</packing>
</child>

<child>
<widget class="GtkFrame" id="frame_usage">
<property name="width_request">440</property>
<property name="height_request">330</property>
<property name="visible">True</property>
<property name="label_xalign">0</property>
<property name="label_yalign">0.5</property>
<property name="shadow_type">GTK_SHADOW_ETCHED_OUT</property>

<child>
<widget class="GtkAlignment" id="alignment19">
<property name="visible">True</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xscale">1</property>
<property name="yscale">1</property>
<property name="top_padding">0</property>
<property name="bottom_padding">0</property>
<property name="left_padding">12</property>
<property name="right_padding">0</property>

<child>
<widget class="GtkScrolledWindow" id="scrolledwindow11">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property>
<property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property>
<property name="shadow_type">GTK_SHADOW_NONE</property>
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>

<child>
<widget class="GtkLayout" id="usage_layout">
<property name="visible">True</property>
<property name="width">400</property>
<property name="height">400</property>
<property name="hadjustment">0 0 406 10 365.4 406</property>
<property name="vadjustment">0 0 400 10 263.7 293</property>

<child>
<widget class="GtkLabel" id="label1">
<property name="width_request">190</property>
<property name="height_request">25</property>
<property name="visible">True</property>
<property name="label" translatable="yes">Part Number:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_RIGHT</property>
<property name="wrap">True</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="x">5</property>
<property name="y">5</property>
</packing>
</child>

<child>
<widget class="GtkLabel" id="label2">
<property name="width_request">190</property>
<property name="height_request">25</property>
<property name="visible">True</property>
<property name="label" translatable="yes">Reference Designator:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_RIGHT</property>
<property name="wrap">True</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="x">5</property>
<property name="y">35</property>
</packing>
</child>

<child>
<widget class="GtkLabel" id="label3">
<property name="width_request">190</property>
<property name="height_request">25</property>
<property name="visible">True</property>
<property name="label" translatable="yes">Composite Ref. Des.:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_RIGHT</property>
<property name="wrap">True</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="x">0</property>
<property name="y">65</property>
</packing>
</child>

<child>
<widget class="GtkLabel" id="label4">
<property name="width_request">190</property>
<property name="height_request">25</property>
<property name="visible">True</property>
<property name="label" translatable="yes">Part Category:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_RIGHT</property>
<property name="wrap">True</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
<packing>
<property name="x">0</property>
<property name="y">100</property>
</packing>
</child>

<child>
<widget class="GtkLabel" id="label5">
<property name="width_request">190</property>
<property name="height_request">25</property>
<property name="visible">True</property>
<property name="label" translatable="yes">Part Sub-Category:</property>
<property name="use_underline&q


Top
 Profile  
 
 Post subject: [SOLVED]
PostPosted: Sat Aug 11, 2007 4:16 am 
Offline
Familiar Face

Joined: Mon Jul 02, 2007 6:32 pm
Posts: 6
Thought I'd already posted this, but I guess not.

I solved the problem by simply changing the name of the widgets that were causing me problems. I can't say as I understand why that matters. There doesn't appear to be anything odd about the original names I was using when compared to the other widget names that work. For example, I changed part_num to part_number.

In any event, I resolved my issue and wanted to make sure that I followed up. If anyone could explain why changing the widget would make a difference I would appreciate the eduction.

Andrew


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot], Google Adsense [Bot], Yahoo [Bot] and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group