glade port: correction to savetype option and menu

This commit is contained in:
matusz 2009-04-17 18:23:15 +00:00
parent 0e94d6ee51
commit ee53e4c03a
2 changed files with 12 additions and 1 deletions

View File

@ -619,6 +619,17 @@
<signal name="activate" handler="on_savetypeXX_activate" object="%d:5" last_modification_time="Thu, 01 Feb 2007 11:41:11 GMT"/>
</widget>
</child>
<child>
<widget class="GtkRadioMenuItem" id="savetype7">
<property name="visible">True</property>
<property name="label" translatable="yes">TYPE: FRAM (4MB)</property>
<property name="use_underline">True</property>
<property name="active">False</property>
<property name="group">savetype1</property>
<signal name="activate" handler="on_savetypeXX_activate" object="%d:5" last_modification_time="Thu, 01 Feb 2007 11:41:11 GMT"/>
</widget>
</child>
</widget>
</child>
</widget>

View File

@ -553,7 +553,7 @@ common_gtk_glade_main( struct configured_features *my_config) {
{
char wdgName[40];
snprintf(wdgName, 39, "savetype%d", my_config->savetype);
snprintf(wdgName, 39, "savetype%d", my_config->savetype+1);
GtkWidget * wdgt = glade_xml_get_widget(xml, wdgName);
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (wdgt), TRUE);
}