# HG changeset patch # User Stu Tomlinson # Date 1180272394 0 # Node ID ae30f9913bb4f6966724c6630ce110d6e91c0fec # Parent 59e09ff3490d6f1630d9265bd26203c13678ba47 Fix for gtk < 2.4 diff -r 59e09ff3490d -r ae30f9913bb4 pidgin/gtkconv.c --- a/pidgin/gtkconv.c Sun May 27 12:39:24 2007 +0000 +++ b/pidgin/gtkconv.c Sun May 27 13:26:34 2007 +0000 @@ -7919,7 +7919,9 @@ entry = gtk_entry_new(); gtk_entry_set_has_frame(GTK_ENTRY(entry), FALSE); gtk_entry_set_width_chars(GTK_ENTRY(entry), 10); +#if GTK_CHECK_VERSION(2,4,0) gtk_entry_set_alignment(GTK_ENTRY(entry), 0.5); +#endif gtk_box_pack_start(GTK_BOX(gtkconv->tabby), entry, TRUE, TRUE, 0); /* after the tab label */ @@ -8326,7 +8328,9 @@ } ebox = gtk_event_box_new(); +#if GTK_CHECK_VERSION(2,4,0) gtk_event_box_set_visible_window(GTK_EVENT_BOX(ebox), FALSE); +#endif gtk_container_add(GTK_CONTAINER(ebox), gtkconv->tabby); g_signal_connect(G_OBJECT(ebox), "button-press-event", G_CALLBACK(alias_double_click_cb), gtkconv);