Mercurial > pidgin
comparison src/gtklog.c @ 9010:54a0f8069f76
[gaim-migrate @ 9786]
" This patch makes pressing enter in the entry box, or
pressing Alt-F, actually do what you'd expect - perform
the search - in the log and system log viewer." --Stu Tomlinson
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sat, 22 May 2004 16:38:54 +0000 |
parents | 230cf4032e3d |
children | 5655dcd94d0f |
comparison
equal
deleted
inserted
replaced
9009:fe5d083f0172 | 9010:54a0f8069f76 |
---|---|
324 /* Search box **********/ | 324 /* Search box **********/ |
325 hbox = gtk_hbox_new(FALSE, 6); | 325 hbox = gtk_hbox_new(FALSE, 6); |
326 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); | 326 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); |
327 lv->entry = gtk_entry_new(); | 327 lv->entry = gtk_entry_new(); |
328 gtk_box_pack_start(GTK_BOX(hbox), lv->entry, TRUE, TRUE, 0); | 328 gtk_box_pack_start(GTK_BOX(hbox), lv->entry, TRUE, TRUE, 0); |
329 g_signal_connect(GTK_ENTRY(lv->entry), "activate", | |
330 G_CALLBACK (search_cb), lv); | |
329 button = gtk_button_new_from_stock(GTK_STOCK_FIND); | 331 button = gtk_button_new_from_stock(GTK_STOCK_FIND); |
330 g_signal_connect (G_OBJECT (button), "pressed", | 332 g_signal_connect (GTK_BUTTON (button), "activate", |
331 G_CALLBACK (search_cb), | 333 G_CALLBACK (search_cb), lv); |
332 lv); | |
333 gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0); | 334 gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0); |
334 gaim_set_accessible_label (lv->treeview, label); | 335 gaim_set_accessible_label (lv->treeview, label); |
335 | 336 |
336 gtk_widget_show_all(lv->window); | 337 gtk_widget_show_all(lv->window); |
337 } | 338 } |
430 /* Search box **********/ | 431 /* Search box **********/ |
431 hbox = gtk_hbox_new(FALSE, 6); | 432 hbox = gtk_hbox_new(FALSE, 6); |
432 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); | 433 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); |
433 syslog_viewer->entry = gtk_entry_new(); | 434 syslog_viewer->entry = gtk_entry_new(); |
434 gtk_box_pack_start(GTK_BOX(hbox), syslog_viewer->entry, TRUE, TRUE, 0); | 435 gtk_box_pack_start(GTK_BOX(hbox), syslog_viewer->entry, TRUE, TRUE, 0); |
436 g_signal_connect (GTK_ENTRY (syslog_viewer->entry), "activate", | |
437 G_CALLBACK (search_cb), | |
438 syslog_viewer); | |
435 button = gtk_button_new_from_stock(GTK_STOCK_FIND); | 439 button = gtk_button_new_from_stock(GTK_STOCK_FIND); |
436 g_signal_connect (G_OBJECT (button), "pressed", | 440 g_signal_connect (GTK_BUTTON (button), "activate", |
437 G_CALLBACK (search_cb), | 441 G_CALLBACK (search_cb), |
438 syslog_viewer); | 442 syslog_viewer); |
439 gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0); | 443 gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0); |
440 | 444 |
441 gtk_widget_show_all(syslog_viewer->window); | 445 gtk_widget_show_all(syslog_viewer->window); |