Fixing things - Alex
[terminatorX.git] / src / tX_glade_callbacks.cc
1 #ifdef HAVE_CONFIG_H
2 #  include <config.h>
3 #endif
4
5 #include <gtk/gtk.h>
6
7 #include "tX_glade_callbacks.h"
8 #include "tX_glade_interface.h"
9 #include "tX_glade_support.h"
10 #include "tX_dialog.h"
11 #include "tX_global.h"
12
13 void
14 on_pref_cancel_clicked                 (GtkButton       *button,
15                                         gpointer         user_data)
16 {
17         gtk_widget_destroy(opt_dialog);
18 }
19
20
21 void
22 on_pref_apply_clicked                  (GtkButton       *button,
23                                         gpointer         user_data)
24 {
25         apply_options(opt_dialog);      
26 }
27
28
29 void
30 on_pref_ok_clicked                     (GtkButton       *button,
31                                         gpointer         user_data)
32 {
33         apply_options(opt_dialog);
34         gtk_widget_destroy(opt_dialog);
35 }
36
37
38 void
39 on_tx_options_destroy                  (GtkObject       *object,
40                                         gpointer         user_data)
41 {
42         opt_dialog=NULL;
43 }
44
45
46 void
47 on_alsa_buffer_time_value_changed      (GtkRange        *range,
48                                         gpointer         user_data)
49 {
50         GtkAdjustment *buffer_time=gtk_range_get_adjustment(GTK_RANGE(user_data));
51         GtkAdjustment *period_time=gtk_range_get_adjustment(GTK_RANGE(range));
52
53         period_time->upper=buffer_time->value;
54         gtk_adjustment_changed(period_time);
55 }