Mercurial > pidgin
comparison src/gtkconv.c @ 4362:4f8a1b65ffa3
[gaim-migrate @ 4628]
this makes it compile. i think it's right. chip can fix it later if i made it worse.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 20 Jan 2003 14:16:27 +0000 |
parents | 25d5b2a7545f |
children | 65d98b565fbe |
comparison
equal
deleted
inserted
replaced
4361:25d5b2a7545f | 4362:4f8a1b65ffa3 |
---|---|
945 entry_key_pressed_cb_2(GtkWidget *entry, GdkEventKey *event, gpointer data) | 945 entry_key_pressed_cb_2(GtkWidget *entry, GdkEventKey *event, gpointer data) |
946 { | 946 { |
947 struct gaim_window *win; | 947 struct gaim_window *win; |
948 struct gaim_conversation *conv; | 948 struct gaim_conversation *conv; |
949 struct gaim_gtk_conversation *gtkconv; | 949 struct gaim_gtk_conversation *gtkconv; |
950 struct gaim_gtk_window *gtkwin; | |
950 | 951 |
951 conv = (struct gaim_conversation *)data; | 952 conv = (struct gaim_conversation *)data; |
952 gtkconv = GAIM_GTK_CONVERSATION(conv); | 953 gtkconv = GAIM_GTK_CONVERSATION(conv); |
953 win = gaim_conversation_get_window(conv); | 954 win = gaim_conversation_get_window(conv); |
955 gtkwin = GAIM_GTK_WINDOW(win); | |
954 | 956 |
955 if (event->keyval == GDK_Escape) { | 957 if (event->keyval == GDK_Escape) { |
956 if (convo_options & OPT_CONVO_ESC_CAN_CLOSE) { | 958 if (convo_options & OPT_CONVO_ESC_CAN_CLOSE) { |
957 g_signal_stop_emission_by_name(G_OBJECT(entry), "key_press_event"); | 959 g_signal_stop_emission_by_name(G_OBJECT(entry), "key_press_event"); |
958 gaim_conversation_destroy(conv); | 960 gaim_conversation_destroy(conv); |
1172 g_signal_stop_emission_by_name(G_OBJECT(entry), "key_press_event"); | 1174 g_signal_stop_emission_by_name(G_OBJECT(entry), "key_press_event"); |
1173 | 1175 |
1174 #ifndef _WIN32 | 1176 #ifndef _WIN32 |
1175 XIconifyWindow(GDK_DISPLAY(), | 1177 XIconifyWindow(GDK_DISPLAY(), |
1176 GDK_WINDOW_XWINDOW(gtkwin->window->window), | 1178 GDK_WINDOW_XWINDOW(gtkwin->window->window), |
1177 ((_XPrivDisplay)GDK_DISPALY())->default_screen); | 1179 ((_XPrivDisplay)GDK_DISPLAY())->default_screen); |
1178 #endif | 1180 #endif |
1179 } | 1181 } |
1180 else if (event->keyval == '[') { | 1182 else if (event->keyval == '[') { |
1181 gaim_window_switch_conversation(win, | 1183 gaim_window_switch_conversation(win, |
1182 gaim_conversation_get_index(conv) - 1); | 1184 gaim_conversation_get_index(conv) - 1); |