Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 64 lines (46 sloc) 1.442 kB
821faab @gregkh usbview 0.1.0 release
authored
1 /*************************************************************************
2 ** callbacks.c for USBView - a USB device viewer
35903be @gregkh usbview 0.9.0
authored
3 ** Copyright (c) 1999, 2000 by Greg Kroah-Hartman, <greg@kroah.com>
821faab @gregkh usbview 0.1.0 release
authored
4 **
5 ** This program is free software; you can redistribute it and/or modify
6 ** it under the terms of the GNU General Public License as published by
e372c42 @gregkh update the FSF address by removing it in all files.
authored
7 ** the Free Software Foundation; version 2 of the License.
821faab @gregkh usbview 0.1.0 release
authored
8 **
9 ** This program is distributed in the hope that it will be useful,
10 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ** GNU General Public License for more details.
13 **
14 ** (See the included file COPYING)
15 *************************************************************************/
16
17 #ifdef HAVE_CONFIG_H
c7b6b1e @gregkh usbview 0.8.1
authored
18 #include <config.h>
821faab @gregkh usbview 0.1.0 release
authored
19 #endif
20
21 #include <gtk/gtk.h>
22
23 #include "usbtree.h"
24
25
c7b6b1e @gregkh usbview 0.8.1
authored
26 void on_buttonClose_clicked (GtkButton *button, gpointer user_data)
821faab @gregkh usbview 0.1.0 release
authored
27 {
c7b6b1e @gregkh usbview 0.8.1
authored
28 gtk_exit(0);
821faab @gregkh usbview 0.1.0 release
authored
29 }
30
31
c7b6b1e @gregkh usbview 0.8.1
authored
32 gboolean on_window1_delete_event (GtkWidget *widget, GdkEvent *event, gpointer user_data)
821faab @gregkh usbview 0.1.0 release
authored
33 {
c7b6b1e @gregkh usbview 0.8.1
authored
34 gtk_main_quit();
821faab @gregkh usbview 0.1.0 release
authored
35
c7b6b1e @gregkh usbview 0.8.1
authored
36 return FALSE;
821faab @gregkh usbview 0.1.0 release
authored
37 }
38
39
c7b6b1e @gregkh usbview 0.8.1
authored
40 void on_buttonRefresh_clicked (GtkButton *button, gpointer user_data)
821faab @gregkh usbview 0.1.0 release
authored
41 {
35903be @gregkh usbview 0.9.0
authored
42 LoadUSBTree(1);
821faab @gregkh usbview 0.1.0 release
authored
43 }
44
df4a395 @gregkh usbview 0.8.0 release
authored
45
c7b6b1e @gregkh usbview 0.8.1
authored
46 void on_buttonConfigure_clicked (GtkButton *button, gpointer user_data)
df4a395 @gregkh usbview 0.8.0 release
authored
47 {
48 configure_dialog ();
49 }
50
35903be @gregkh usbview 0.9.0
authored
51
52 void on_buttonAbout_clicked (GtkButton *button, gpointer user_data)
53 {
54 about_dialog ();
55 }
56
57
58 gint on_timer_timeout (gpointer user_data)
59 {
60 LoadUSBTree(0);
61 return 1;
62 }
63
Something went wrong with that request. Please try again.