cpw.qulogic.gtk3: fe9c6c61: Remove some deprecated functions.
qulogic at pidgin.im
qulogic at pidgin.im
Tue Feb 16 04:08:23 EST 2010
-----------------------------------------------------------------
Revision: fe9c6c6158b441811aceea190650f189fe1fa4c3
Ancestor: c9211cd8bf87478800560441c7eb893f1e3995e0
Author: qulogic at pidgin.im
Date: 2010-02-16T08:29:28
Branch: im.pidgin.cpw.qulogic.gtk3
URL: http://d.pidgin.im/viewmtn/revision/info/fe9c6c6158b441811aceea190650f189fe1fa4c3
Modified files:
pidgin/gtkutils.c
ChangeLog:
Remove some deprecated functions.
-------------- next part --------------
============================================================
--- pidgin/gtkutils.c f2249c34c76983c63795b3b0109b20e57db1bcf7
+++ pidgin/gtkutils.c 5b629048a24d23b43a51b5c45572c29550ce708a
@@ -406,13 +406,13 @@ pidgin_pixbuf_button_from_stock(const ch
gtk_container_add(GTK_CONTAINER(button), bbox);
if (icon) {
- gtk_box_pack_start_defaults(GTK_BOX(bbox), ibox);
+ gtk_box_pack_start(GTK_BOX(bbox), ibox, TRUE, TRUE, 0);
image = gtk_image_new_from_stock(icon, GTK_ICON_SIZE_BUTTON);
gtk_box_pack_end(GTK_BOX(ibox), image, FALSE, TRUE, 0);
}
if (text) {
- gtk_box_pack_start_defaults(GTK_BOX(bbox), lbox);
+ gtk_box_pack_start(GTK_BOX(bbox), lbox, TRUE, TRUE, 0);
label = gtk_label_new(NULL);
gtk_label_set_text_with_mnemonic(GTK_LABEL(label), text);
gtk_label_set_mnemonic_widget(GTK_LABEL(label), button);
@@ -892,7 +892,11 @@ gboolean
}
gboolean
+#if GTK_CHECK_VERSION(2,4,0)
+pidgin_check_if_dir(const char *path, gpointer filesel)
+#else
pidgin_check_if_dir(const char *path, GtkFileSelection *filesel)
+#endif
{
char *dirname = NULL;
@@ -901,7 +905,9 @@ pidgin_check_if_dir(const char *path, Gt
if (path[strlen(path) - 1] != G_DIR_SEPARATOR) {
dirname = g_strconcat(path, G_DIR_SEPARATOR_S, NULL);
}
+#if !GTK_CHECK_VERSION(2,4,0)
gtk_file_selection_set_filename(filesel, (dirname != NULL) ? dirname : path);
+#endif
g_free(dirname);
return TRUE;
}
More information about the Commits
mailing list