comparison src/prefs.c @ 5084:a96653493416

[gaim-migrate @ 5439] Fixed warnings (win32) committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Tue, 08 Apr 2003 18:36:50 +0000
parents 8e55a4d362a3
children 4cfc49e31c2e
comparison
equal deleted inserted replaced
5083:580c790bc042 5084:a96653493416
65 static GtkWidget *gaim_dropdown(GtkWidget *, const gchar *, int *, int, ...); 65 static GtkWidget *gaim_dropdown(GtkWidget *, const gchar *, int *, int, ...);
66 static GtkWidget *gaim_dropdown_from_list(GtkWidget *, const gchar *, int *, int, GList *); 66 static GtkWidget *gaim_dropdown_from_list(GtkWidget *, const gchar *, int *, int, GList *);
67 static GtkWidget *show_color_pref(GtkWidget *, gboolean); 67 static GtkWidget *show_color_pref(GtkWidget *, gboolean);
68 static void delete_prefs(GtkWidget *, void *); 68 static void delete_prefs(GtkWidget *, void *);
69 void set_default_away(GtkWidget *, gpointer); 69 void set_default_away(GtkWidget *, gpointer);
70 #ifndef _WIN32
70 static gboolean program_is_valid(const char *); 71 static gboolean program_is_valid(const char *);
72 #endif
71 73
72 struct debug_window *dw = NULL; 74 struct debug_window *dw = NULL;
73 GtkWidget *prefs = NULL; 75 GtkWidget *prefs = NULL;
74 GtkWidget *debugbutton = NULL; 76 GtkWidget *debugbutton = NULL;
75 static int notebook_page = 0; 77 static int notebook_page = 0;
256 258
257 return path; 259 return path;
258 } 260 }
259 261
260 void theme_install_theme(char *path, char *extn) { 262 void theme_install_theme(char *path, char *extn) {
263 #ifndef _WIN32
261 gchar *command; 264 gchar *command;
265 #endif
262 gchar *destdir; 266 gchar *destdir;
263 gchar *tail; 267 gchar *tail;
264 268
265 /* Just to be safe */ 269 /* Just to be safe */
266 g_strchomp(path); 270 g_strchomp(path);
2209 default_away = g_slist_nth_data(away_messages, length - 1); 2213 default_away = g_slist_nth_data(away_messages, length - 1);
2210 else 2214 else
2211 default_away = g_slist_nth_data(away_messages, (int)i); 2215 default_away = g_slist_nth_data(away_messages, (int)i);
2212 } 2216 }
2213 2217
2218 #ifndef _WIN32
2214 static gboolean program_is_valid(const char *program) 2219 static gboolean program_is_valid(const char *program)
2215 { 2220 {
2216 GError *error = NULL; 2221 GError *error = NULL;
2217 char **argv; 2222 char **argv;
2218 gchar *progname; 2223 gchar *progname;
2238 g_strfreev(argv); 2243 g_strfreev(argv);
2239 g_free(progname); 2244 g_free(progname);
2240 2245
2241 return is_valid; 2246 return is_valid;
2242 } 2247 }
2248 #endif
2243 2249
2244 static void update_spin_value(GtkWidget *w, GtkWidget *spin) 2250 static void update_spin_value(GtkWidget *w, GtkWidget *spin)
2245 { 2251 {
2246 int *value = g_object_get_data(G_OBJECT(spin), "val"); 2252 int *value = g_object_get_data(G_OBJECT(spin), "val");
2247 *value = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(spin)); 2253 *value = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(spin));