Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/src/gtklog.c Mon Oct 24 00:18:37 2005 +0000 +++ b/src/gtklog.c Mon Oct 24 00:31:41 2005 +0000 @@ -287,7 +287,9 @@ GtkCellRenderer *rend; GtkTreeViewColumn *col; GtkTreeSelection *sel; +#if GTK_CHECK_VERSION(2,2,0) GtkTreePath *path_to_first_log; +#endif GtkWidget *vbox; GtkWidget *frame; GtkWidget *hbox; @@ -423,6 +425,7 @@ g_signal_connect(GTK_BUTTON(button), "activate", G_CALLBACK(search_cb), lv); g_signal_connect(GTK_BUTTON(button), "clicked", G_CALLBACK(search_cb), lv); +#if GTK_CHECK_VERSION(2,2,0) /* Show most recent log **********/ path_to_first_log = gtk_tree_path_new_from_string("0:0"); if (path_to_first_log) @@ -431,6 +434,7 @@ gtk_tree_selection_select_path(sel, path_to_first_log); gtk_tree_path_free(path_to_first_log); } +#endif gtk_widget_show_all(lv->window);