</child>
<child>
- <widget class="GtkLabel" id="name_warning_label">
+ <widget class="GtkHBox" id="hbox39">
<property name="visible">True</property>
- <property name="label" translatable="yes"></property>
- <property name="use_underline">False</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</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>
+ <property name="homogeneous">False</property>
+ <property name="spacing">6</property>
+
+ <child>
+ <widget class="GtkImage" id="name_warning_image">
+ <property name="visible">True</property>
+ <property name="xalign">0.5</property>
+ <property name="yalign">0.5</property>
+ <property name="xpad">0</property>
+ <property name="ypad">0</property>
+ </widget>
+ <packing>
+ <property name="padding">0</property>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ </packing>
+ </child>
+
+ <child>
+ <widget class="GtkLabel" id="name_warning_label">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes"></property>
+ <property name="use_underline">False</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</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="padding">0</property>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ </packing>
+ </child>
</widget>
<packing>
<property name="left_attach">1</property>
/* Name page controls */
GtkWidget *brand_entry;
GtkWidget *part_num_entry;
+ GtkWidget *name_warning_image;
GtkWidget *name_warning_label;
GtkWidget *description_entry;
dialog->priv->name_page = glade_xml_get_widget (gui, "name_page");
dialog->priv->brand_entry = glade_xml_get_widget (gui, "brand_entry");
dialog->priv->part_num_entry = glade_xml_get_widget (gui, "part_num_entry");
+ dialog->priv->name_warning_image = glade_xml_get_widget (gui, "name_warning_image");
dialog->priv->name_warning_label = glade_xml_get_widget (gui, "name_warning_label");
dialog->priv->description_entry = glade_xml_get_widget (gui, "description_entry");
if (brand && brand[0] && part_num && part_num[0] &&
lgl_db_does_template_exist (brand, part_num))
{
+ gtk_image_set_from_stock (GTK_IMAGE (dialog->priv->name_warning_image),
+ GTK_STOCK_DIALOG_WARNING, GTK_ICON_SIZE_BUTTON);
gtk_label_set_markup (GTK_LABEL (dialog->priv->name_warning_label),
_("<span foreground='red' weight='bold'>Brand and part# match an existing template!</span>"));
}
else
{
+ gtk_image_clear (GTK_IMAGE (dialog->priv->name_warning_image));
gtk_label_set_text (GTK_LABEL (dialog->priv->name_warning_label), "");
}