Mercurial > pidgin
comparison src/gtkimhtml.c @ 5959:0a2a32b1917c
[gaim-migrate @ 6405]
Some minor UI fixes from yours truely:
-Closing a conversation that has a "select image to insert" dialog open
now also closes and frees the "select image to insert" dialog.
-The buddy icon selection dialog now lets you type, eg "~/.gaim/icons"
and hit enter without it thinking you've selected "~/.gaim/icons" as
your buddy icon. It will instead change the icon selection dialog to
that directory.
-Same for the "select file to send" dialog.
-Same for the right-click-on-an-icon "save icon" dialog.
-Same for the right-click-on-an-IM-image "save image" dialog.
-Same for buddy pounce "select sound" and "select program" dialogs.
I think there is a small leak here, but I don't have time to figure
it out. Someone should memprof this. I think it's gtkpounce.c line 140.
-Same for toc's "select file to send" dialog. This needs to change--
toc has gtk code in it.
-Made file_is_dir() accept a GtkFileSelection rather than a GtkWidget
(there is no reason it would need to accept anything other than a
GtkFileSelection)
-Some minor pounce dialog memleak fixes, I think. The hash table wasn't
getting freed on cancel.
Line 4960 of gtkconv.c might be leaking somehow. Someone should look
into that.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 26 Jun 2003 02:01:56 +0000 |
parents | e2f2d8857f9f |
children | 5fb6bd688a5b |
comparison
equal
deleted
inserted
replaced
5958:b432fa240263 | 5959:0a2a32b1917c |
---|---|
1616 gaim_im_image *image = g_object_get_data(G_OBJECT(sel), "gaim_im_image"); | 1616 gaim_im_image *image = g_object_get_data(G_OBJECT(sel), "gaim_im_image"); |
1617 gchar *type = NULL; | 1617 gchar *type = NULL; |
1618 GError *error = NULL; | 1618 GError *error = NULL; |
1619 #if GTK_CHECK_VERSION(2,2,0) | 1619 #if GTK_CHECK_VERSION(2,2,0) |
1620 GSList *formats = gdk_pixbuf_get_formats(); | 1620 GSList *formats = gdk_pixbuf_get_formats(); |
1621 | 1621 #endif |
1622 | |
1623 if (file_is_dir(filename, GTK_FILE_SELECTION(sel))) | |
1624 return; | |
1625 | |
1626 #if GTK_CHECK_VERSION(2,2,0) | |
1622 while(formats){ | 1627 while(formats){ |
1623 GdkPixbufFormat *format = formats->data; | 1628 GdkPixbufFormat *format = formats->data; |
1624 gchar **extensions = gdk_pixbuf_format_get_extensions(format); | 1629 gchar **extensions = gdk_pixbuf_format_get_extensions(format); |
1625 gpointer p = extensions; | 1630 gpointer p = extensions; |
1626 | 1631 |