23 |
|
|
24 |
#include <gtk/gtk.h> |
#include <gtk/gtk.h> |
25 |
#include <stdio.h> |
#include <stdio.h> |
26 |
|
#include <stdlib.h> |
27 |
|
|
28 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
29 |
# include "config.h" |
# include "config.h" |
788 |
void |
void |
789 |
on_menu_dialogs_activate(GtkMenuItem * menuitem, gpointer user_data) |
on_menu_dialogs_activate(GtkMenuItem * menuitem, gpointer user_data) |
790 |
{ |
{ |
791 |
GtkWidget *dialogsdialog; |
GtkWidget *dialogsdialog, *checkbutton; |
792 |
|
gchar **split, *temp; |
793 |
|
gint i; |
794 |
|
|
795 |
dialogsdialog = create_dialogsdialog (); |
dialogsdialog = create_dialogsdialog (); |
796 |
|
split = g_strsplit(preferences.b4columns, ",", 0); |
797 |
|
for (i = 0; i < 19; i++) |
798 |
|
{ |
799 |
|
temp = g_strdup_printf("b4%d", i); |
800 |
|
checkbutton = lookup_widget(dialogsdialog, temp); |
801 |
|
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (checkbutton), |
802 |
|
atoi(split[i]) ? TRUE : FALSE); |
803 |
|
g_free(temp); |
804 |
|
} |
805 |
|
g_strfreev(split); |
806 |
gtk_widget_set_sensitive (mainwindow, 0); |
gtk_widget_set_sensitive (mainwindow, 0); |
807 |
gtk_widget_show (dialogsdialog); |
gtk_widget_show (dialogsdialog); |
808 |
} |
} |