1 
2 #ifdef HAVE_CONFIG_H
3 #  include <config.h>
4 #endif
5 
6 #include <gtk/gtk.h>
7 
8 #ifdef TSCLIENT_DEBUG
9 #define DEBUG 1
10 #else
11 #define DEBUG 0
12 #endif
13 
14 #define TSC_WM_COMPLEX 0
15 #define TSC_WM_COMPACT 1
16 #define MAX_ARGVS 16
17 #define MAX_ARGV_LEN 255
18 
19 #define HOOKUP_OBJECT(component,widget,name) \
20   g_object_set_data_full (G_OBJECT (component), name, \
21     gtk_widget_ref (widget), (GtkDestroyNotify) gtk_widget_unref)
22 
23 /*
24  * This function returns a widget in a component created by Glade.
25  * Call it with the toplevel widget in the component (i.e. a window/dialog),
26  * or alternatively any widget in the component, and the name of the widget
27  * you want returned.
28  */
29 GtkWidget* lookup_widget (GtkWidget *widget, const gchar *widget_name);
30 
31 gchar* find_pixmap_file (const gchar *filename);
32 
33 /* Use this function to set the directory containing installed pixmaps. */
34 void add_pixmap_directory (const gchar *directory);
35 
36 /* This is used to create the pixmaps used in the interface. */
37 GtkWidget* create_pixmap (GtkWidget *widget, const gchar *filename);
38 
39 /* This is used to create the pixbufs used in the interface. */
40 GdkPixbuf* create_pixbuf (const gchar *filename);
41 
42 GtkWidget *tsc_option_menu_factory (gchar**vmnemonic);
43 
44 int tsc_check_files ();
45 
46 gchar *tsc_home_path ();
47 
48 int tsc_launch_remote (rdp_file *rdp_in, int launch_async, gchar** error);
49 
50 void tsc_connect_error (rdp_file * rdp, const gchar* error);
51 void tsc_error_message (gchar *message);
52 
53 void tsc_about_dialog ();
54 
55 void tsc_quick_pick_activate (GtkComboBox *widget, gpointer user_data);
56 
57 void tsc_set_protocol_widgets (GtkWidget *main_win, gint protocol);
58