678 |
|
combo = gtk_combo_new(); |
679 |
|
gtk_widget_show(combo); |
680 |
|
GList *glist1 = NULL; |
681 |
< |
glist1 = g_list_append(glist1, (char *)"512"); |
682 |
< |
glist1 = g_list_append(glist1, (char *)"640"); |
683 |
< |
glist1 = g_list_append(glist1, (char *)"800"); |
684 |
< |
glist1 = g_list_append(glist1, (char *)"1024"); |
685 |
< |
glist1 = g_list_append(glist1, (char *)"MAX"); |
681 |
> |
glist1 = g_list_append(glist1, GetString(STR_SIZE_512_LAB)); |
682 |
> |
glist1 = g_list_append(glist1, GetString(STR_SIZE_640_LAB)); |
683 |
> |
glist1 = g_list_append(glist1, GetString(STR_SIZE_800_LAB)); |
684 |
> |
glist1 = g_list_append(glist1, GetString(STR_SIZE_1024_LAB)); |
685 |
> |
glist1 = g_list_append(glist1, GetString(STR_SIZE_MAX_LAB)); |
686 |
|
gtk_combo_set_popdown_strings(GTK_COMBO(combo), glist1); |
687 |
|
if (dis_width) |
688 |
|
sprintf(str, "%d", dis_width); |
689 |
|
else |
690 |
< |
strcpy(str, "MAX"); |
690 |
> |
strcpy(str, GetString(STR_SIZE_MAX_LAB)); |
691 |
|
gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), str); |
692 |
|
gtk_table_attach(GTK_TABLE(table), combo, 1, 2, 2, 3, (GtkAttachOptions)GTK_FILL, (GtkAttachOptions)0, 4, 4); |
693 |
|
w_display_x = GTK_COMBO(combo)->entry; |
699 |
|
combo = gtk_combo_new(); |
700 |
|
gtk_widget_show(combo); |
701 |
|
GList *glist2 = NULL; |
702 |
< |
glist2 = g_list_append(glist2, (char *)"384"); |
703 |
< |
glist2 = g_list_append(glist2, (char *)"480"); |
704 |
< |
glist2 = g_list_append(glist2, (char *)"600"); |
705 |
< |
glist2 = g_list_append(glist2, (char *)"768"); |
706 |
< |
glist2 = g_list_append(glist2, (char *)"MAX"); |
702 |
> |
glist2 = g_list_append(glist2, GetString(STR_SIZE_384_LAB)); |
703 |
> |
glist2 = g_list_append(glist2, GetString(STR_SIZE_480_LAB)); |
704 |
> |
glist2 = g_list_append(glist2, GetString(STR_SIZE_600_LAB)); |
705 |
> |
glist2 = g_list_append(glist2, GetString(STR_SIZE_768_LAB)); |
706 |
> |
glist2 = g_list_append(glist2, GetString(STR_SIZE_MAX_LAB)); |
707 |
|
gtk_combo_set_popdown_strings(GTK_COMBO(combo), glist2); |
708 |
|
if (dis_height) |
709 |
|
sprintf(str, "%d", dis_height); |
710 |
|
else |
711 |
< |
strcpy(str, "MAX"); |
711 |
> |
strcpy(str, GetString(STR_SIZE_MAX_LAB)); |
712 |
|
gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), str); |
713 |
|
gtk_table_attach(GTK_TABLE(table), combo, 1, 2, 3, 4, (GtkAttachOptions)GTK_FILL, (GtkAttachOptions)0, 4, 4); |
714 |
|
w_display_y = GTK_COMBO(combo)->entry; |
777 |
|
if (glist) |
778 |
|
g_list_sort(glist, gl_str_cmp); |
779 |
|
else |
780 |
< |
glist = g_list_append(glist, (char *)"<none>"); |
780 |
> |
glist = g_list_append(glist, GetString(STR_NONE_LAB)); |
781 |
|
return glist; |
782 |
|
} |
783 |
|
|
813 |
|
if (glist) |
814 |
|
g_list_sort(glist, gl_str_cmp); |
815 |
|
else |
816 |
< |
glist = g_list_append(glist, (char *)"<none>"); |
816 |
> |
glist = g_list_append(glist, GetString(STR_NONE_LAB)); |
817 |
|
return glist; |
818 |
|
} |
819 |
|
|