| 1854 switch (event->keyval) { |
1854 switch (event->keyval) { |
| 1855 case GDK_Up: |
1855 case GDK_Up: |
| 1856 if (!gtkconv->send_history) |
1856 if (!gtkconv->send_history) |
| 1857 break; |
1857 break; |
| 1858 |
1858 |
| |
1859 if (gtkconv->entry != entry) |
| |
1860 break; |
| |
1861 |
| 1859 if (!gtkconv->send_history->prev) { |
1862 if (!gtkconv->send_history->prev) { |
| 1860 GtkTextIter start, end; |
1863 GtkTextIter start, end; |
| 1861 |
1864 |
| 1862 g_free(gtkconv->send_history->data); |
1865 g_free(gtkconv->send_history->data); |
| 1863 |
1866 |
| 4252 G_CALLBACK(topic_callback), gtkconv); |
4260 G_CALLBACK(topic_callback), gtkconv); |
| 4253 } |
4261 } |
| 4254 |
4262 |
| 4255 gtk_box_pack_start(GTK_BOX(hbox), gtkchat->topic_text, TRUE, TRUE, 0); |
4263 gtk_box_pack_start(GTK_BOX(hbox), gtkchat->topic_text, TRUE, TRUE, 0); |
| 4256 gtk_widget_show(gtkchat->topic_text); |
4264 gtk_widget_show(gtkchat->topic_text); |
| |
4265 g_signal_connect(G_OBJECT(gtkchat->topic_text), "key_press_event", |
| |
4266 G_CALLBACK(entry_key_press_cb), gtkconv); |
| 4257 } |
4267 } |
| 4258 |
4268 |
| 4259 /* Setup the horizontal pane. */ |
4269 /* Setup the horizontal pane. */ |
| 4260 hpaned = gtk_hpaned_new(); |
4270 hpaned = gtk_hpaned_new(); |
| 4261 gtk_box_pack_start(GTK_BOX(vbox), hpaned, TRUE, TRUE, 0); |
4271 gtk_box_pack_start(GTK_BOX(vbox), hpaned, TRUE, TRUE, 0); |