2279
|
1 #include <config.h>
|
|
2
|
|
3 #include <gtk/gtk.h>
|
|
4
|
|
5 #include "common.h"
|
|
6
|
|
7 void
|
|
8 on_reconnectcheck_toggled (GtkToggleButton *togglebutton,
|
|
9 GtkWidget *reconnectspin)
|
|
10 {
|
|
11 gtk_widget_set_sensitive(reconnectspin, gtk_toggle_button_get_active(togglebutton));
|
|
12 }
|
|
13
|
|
14
|
|
15 void
|
|
16 on_cancelbutton1_clicked (GtkButton *button,
|
|
17 gpointer user_data)
|
|
18 {
|
|
19 gtk_widget_destroy(lirc_cfg);
|
|
20 lirc_cfg=NULL;
|
|
21 }
|
|
22
|
|
23
|
|
24 void
|
|
25 on_okbutton1_clicked (GtkButton *button,
|
|
26 gpointer user_data)
|
|
27 {
|
|
28 b_enable_reconnect=(gint)gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(g_object_get_data(G_OBJECT(lirc_cfg), "reconnectcheck")));
|
|
29 reconnect_timeout=gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(g_object_get_data(G_OBJECT(lirc_cfg), "reconnectspin")));
|
|
30 save_cfg();
|
|
31 gtk_widget_destroy(lirc_cfg);
|
|
32 lirc_cfg=NULL;
|
|
33 }
|