Button: make sure icon is optional
This commit is contained in:
parent
63dd4a3e6c
commit
a2c5553f4f
1 changed files with 6 additions and 3 deletions
|
@ -875,9 +875,12 @@ void config_write_button(FILE *fp)
|
||||||
Button *button = &g_array_index(buttons, Button, i);
|
Button *button = &g_array_index(buttons, Button, i);
|
||||||
|
|
||||||
fprintf(fp, "button = new\n");
|
fprintf(fp, "button = new\n");
|
||||||
fprintf(fp, "button_icon = %s\n", gtk_entry_get_text(GTK_ENTRY(button->button_icon)));
|
if (strlen(gtk_entry_get_text(GTK_ENTRY(button->button_icon))))
|
||||||
fprintf(fp, "button_text = %s\n", gtk_entry_get_text(GTK_ENTRY(button->button_text)));
|
fprintf(fp, "button_icon = %s\n", gtk_entry_get_text(GTK_ENTRY(button->button_icon)));
|
||||||
fprintf(fp, "button_tooltip = %s\n", gtk_entry_get_text(GTK_ENTRY(button->button_tooltip)));
|
if (gtk_entry_get_text(GTK_ENTRY(button->button_text)))
|
||||||
|
fprintf(fp, "button_text = %s\n", gtk_entry_get_text(GTK_ENTRY(button->button_text)));
|
||||||
|
if (strlen(gtk_entry_get_text(GTK_ENTRY(button->button_tooltip))))
|
||||||
|
fprintf(fp, "button_tooltip = %s\n", gtk_entry_get_text(GTK_ENTRY(button->button_tooltip)));
|
||||||
|
|
||||||
fprintf(fp, "button_lclick_command = %s\n", gtk_entry_get_text(GTK_ENTRY(button->button_left_command)));
|
fprintf(fp, "button_lclick_command = %s\n", gtk_entry_get_text(GTK_ENTRY(button->button_left_command)));
|
||||||
fprintf(fp, "button_rclick_command = %s\n", gtk_entry_get_text(GTK_ENTRY(button->button_right_command)));
|
fprintf(fp, "button_rclick_command = %s\n", gtk_entry_get_text(GTK_ENTRY(button->button_right_command)));
|
||||||
|
|
Loading…
Reference in a new issue