Mercurial > pidgin.yaz
comparison src/gtklog.c @ 11780:8cb75ba77f9d
[gaim-migrate @ 14071]
I've been time travelling, I bumped into Gtk 2.0 on my way. Gaim now works
with Gtk 2.0 again.
Next stop: gtk 1.2 ... erm. what? ... NO!
PS. resiak: I won!
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Mon, 24 Oct 2005 00:31:41 +0000 |
parents | d56778d594d9 |
children | 3ba50c385299 |
comparison
equal
deleted
inserted
replaced
11779:80af53b5b3c5 | 11780:8cb75ba77f9d |
---|---|
285 GtkWidget *pane; | 285 GtkWidget *pane; |
286 GtkWidget *sw; | 286 GtkWidget *sw; |
287 GtkCellRenderer *rend; | 287 GtkCellRenderer *rend; |
288 GtkTreeViewColumn *col; | 288 GtkTreeViewColumn *col; |
289 GtkTreeSelection *sel; | 289 GtkTreeSelection *sel; |
290 #if GTK_CHECK_VERSION(2,2,0) | |
290 GtkTreePath *path_to_first_log; | 291 GtkTreePath *path_to_first_log; |
292 #endif | |
291 GtkWidget *vbox; | 293 GtkWidget *vbox; |
292 GtkWidget *frame; | 294 GtkWidget *frame; |
293 GtkWidget *hbox; | 295 GtkWidget *hbox; |
294 GtkWidget *button; | 296 GtkWidget *button; |
295 GtkWidget *size_label; | 297 GtkWidget *size_label; |
421 gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0); | 423 gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0); |
422 g_signal_connect(GTK_ENTRY(lv->entry), "activate", G_CALLBACK(search_cb), lv); | 424 g_signal_connect(GTK_ENTRY(lv->entry), "activate", G_CALLBACK(search_cb), lv); |
423 g_signal_connect(GTK_BUTTON(button), "activate", G_CALLBACK(search_cb), lv); | 425 g_signal_connect(GTK_BUTTON(button), "activate", G_CALLBACK(search_cb), lv); |
424 g_signal_connect(GTK_BUTTON(button), "clicked", G_CALLBACK(search_cb), lv); | 426 g_signal_connect(GTK_BUTTON(button), "clicked", G_CALLBACK(search_cb), lv); |
425 | 427 |
428 #if GTK_CHECK_VERSION(2,2,0) | |
426 /* Show most recent log **********/ | 429 /* Show most recent log **********/ |
427 path_to_first_log = gtk_tree_path_new_from_string("0:0"); | 430 path_to_first_log = gtk_tree_path_new_from_string("0:0"); |
428 if (path_to_first_log) | 431 if (path_to_first_log) |
429 { | 432 { |
430 gtk_tree_view_expand_to_path(GTK_TREE_VIEW(lv->treeview), path_to_first_log); | 433 gtk_tree_view_expand_to_path(GTK_TREE_VIEW(lv->treeview), path_to_first_log); |
431 gtk_tree_selection_select_path(sel, path_to_first_log); | 434 gtk_tree_selection_select_path(sel, path_to_first_log); |
432 gtk_tree_path_free(path_to_first_log); | 435 gtk_tree_path_free(path_to_first_log); |
433 } | 436 } |
437 #endif | |
434 | 438 |
435 gtk_widget_show_all(lv->window); | 439 gtk_widget_show_all(lv->window); |
436 | 440 |
437 return lv; | 441 return lv; |
438 } | 442 } |