Mercurial > gftp.yaz
comparison src/gtk/gftp-gtk.h @ 45:311e29c40ed6
2002-10-31 Brian Masney <masneyb@gftp.org>
* src/gtk/*.[ch] - don't check for gtk+ version based on the minor
version. May cause problems later on.
* lib/protocols.c src/gtk/bookmarks.c src/gtk/misc-gtk.c - use UTF8
functions for user data when using glib 2.0
author | masneyb |
---|---|
date | Thu, 31 Oct 2002 23:55:17 +0000 |
parents | cd169e4789df |
children | a12bcbc2fce4 |
comparison
equal
deleted
inserted
replaced
44:9c0825c047e7 | 45:311e29c40ed6 |
---|---|
28 #include <pthread.h> | 28 #include <pthread.h> |
29 | 29 |
30 #define IS_ONE_SELECTED(wdata) (GTK_CLIST ((wdata)->listbox)->selection && GTK_CLIST ((wdata)->listbox)->selection->next == NULL) | 30 #define IS_ONE_SELECTED(wdata) (GTK_CLIST ((wdata)->listbox)->selection && GTK_CLIST ((wdata)->listbox)->selection->next == NULL) |
31 #define IS_NONE_SELECTED(wdata) (GTK_CLIST ((wdata)->listbox)->selection == NULL) | 31 #define IS_NONE_SELECTED(wdata) (GTK_CLIST ((wdata)->listbox)->selection == NULL) |
32 | 32 |
33 #if GTK_MAJOR_VERSION == 1 && GTK_MINOR_VERSION == 2 | 33 #if GTK_MAJOR_VERSION == 1 |
34 #define gtk_widget_set_size_request(widget, width, height) \ | 34 #define gtk_widget_set_size_request(widget, width, height) \ |
35 gtk_widget_set_usize (widget, width, height) | 35 gtk_widget_set_usize (widget, width, height) |
36 #endif | 36 #endif |
37 | 37 |
38 /* These 2 defines are for creating menu items with stock icons in GTK+ 2.0. | 38 /* These 2 defines are for creating menu items with stock icons in GTK+ 2.0. |
137 | 137 |
138 extern gftp_window_data window1, window2, * other_wdata, * current_wdata; | 138 extern gftp_window_data window1, window2, * other_wdata, * current_wdata; |
139 extern GtkWidget * stop_btn, * hostedit, * useredit, * passedit, | 139 extern GtkWidget * stop_btn, * hostedit, * useredit, * passedit, |
140 * portedit, * logwdw, * dlwdw, * protocol_menu, * optionmenu; | 140 * portedit, * logwdw, * dlwdw, * protocol_menu, * optionmenu; |
141 extern GtkAdjustment * logwdw_vadj; | 141 extern GtkAdjustment * logwdw_vadj; |
142 #if GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION == 0 | 142 #if GTK_MAJOR_VERSION > 1 |
143 extern GtkTextMark * logwdw_textmark; | 143 extern GtkTextMark * logwdw_textmark; |
144 #endif | 144 #endif |
145 extern int local_start, remote_start, trans_start, log_start, tools_start; | 145 extern int local_start, remote_start, trans_start, log_start, tools_start; |
146 extern GHashTable * graphic_hash_table; | 146 extern GHashTable * graphic_hash_table; |
147 extern GtkItemFactoryEntry * menus; | 147 extern GtkItemFactoryEntry * menus; |