Tue, 17 Oct 2006 08:13:41 +0000
[gaim-migrate @ 17495]
This should fix the statusbox issues that were keeping us from releasing beta
4 (and which were just really annoying). Thakn sadrul for most of this, I just
added the if (index == -1) bit. Anyway, the way this works now is that for
saved/popular statuses the primitive underlying that status is where the
dropdown for the statusbox starts. If we don't like that we can change it but
I'm not sure we'll find something better.
Also, this might plug a couple leaks, I'm not really sure but it certainly
looks right.
Up next, the patch to make the docklet use the per-protocol statuses in the
top section.
| 14629 | 1 | typedef struct group *Gaim__GtkUI__Group; |
| 14478 | 2 | |
| 3 | #define group perl_group | |
| 4 | ||
| 5 | #include <glib.h> | |
| 6 | #include <gtk/gtk.h> | |
| 7 | #ifdef _WIN32 | |
| 8 | #undef pipe | |
| 9 | #endif | |
| 10 | #include <EXTERN.h> | |
| 11 | #include <perl.h> | |
| 12 | #include <XSUB.h> | |
| 13 | ||
| 14 | #undef group | |
| 15 | ||
| 16 | #include <plugins/perl/common/module.h> | |
| 17 | ||
| 18 | #include "gtkaccount.h" | |
| 19 | #include "gtkblist.h" | |
| 20 | #include "gtkconn.h" | |
| 21 | #include "gtkconv.h" | |
| 22 | #include "gtkconvwin.h" | |
| 23 | #include "gtkdebug.h" | |
| 24 | #include "gtkdialogs.h" | |
| 25 | #include "gtkft.h" | |
| 26 | #include "gtkimhtml.h" | |
| 27 | #include "gtkimhtmltoolbar.h" | |
| 28 | #include "gtklog.h" | |
| 29 | #include "gtkmenutray.h" | |
| 30 | #include "gtkplugin.h" | |
| 31 | #include "gtkpluginpref.h" | |
| 32 | #include "gtkpounce.h" | |
| 33 | #include "gtkprefs.h" | |
| 34 | #include "gtkprivacy.h" | |
| 35 | #include "gtkroomlist.h" | |
| 36 | #include "gtksavedstatuses.h" | |
| 37 | #include "gtksession.h" | |
| 38 | #include "gtksound.h" | |
| 39 | #include "gtkstatusbox.h" | |
| 40 | #include "gtkthemes.h" | |
| 41 | #include "gtkutils.h" | |
| 42 | ||
| 43 | /* gtkaccount.h */ | |
| 14629 | 44 | typedef GaimGtkAccountDialogType Gaim__GtkUI__Account__Dialog__Type; |
| 14478 | 45 | |
| 46 | /* gtkblist.h */ | |
| 14629 | 47 | typedef GaimGtkBuddyList * Gaim__GtkUI__BuddyList; |
| 48 | typedef gaim_gtk_blist_sort_function Gaim__GtkUI__BuddyList__SortFunction; | |
| 14478 | 49 | |
| 50 | /* gtkconv.h */ | |
| 14629 | 51 | typedef GaimGtkConversation * Gaim__GtkUI__Conversation; |
| 14478 | 52 | typedef GaimUnseenState Gaim__UnseenState; |
| 53 | ||
| 54 | /* gtkconvwin.h */ | |
| 14629 | 55 | typedef GaimGtkWindow * Gaim__GtkUI__Conversation__Window; |
| 14478 | 56 | typedef GaimConvPlacementFunc Gaim__Conversation__PlacementFunc; |
| 57 | ||
| 58 | /* gtkft.h */ | |
| 14629 | 59 | typedef GaimGtkXferDialog * Gaim__GtkUI__Xfer__Dialog; |
| 14478 | 60 | |
| 61 | /* gtkimhtml.h */ | |
| 14629 | 62 | typedef GtkIMHtml * Gaim__GtkUI__IMHtml; |
| 63 | typedef GtkIMHtmlButtons Gaim__GtkUI__IMHtml__Buttons; | |
| 64 | typedef GtkIMHtmlFuncs * Gaim__GtkUI__IMHtml__Funcs; | |
| 65 | typedef GtkIMHtmlScalable * Gaim__GtkUI__IMHtml__Scalable; | |
| 66 | typedef GtkIMHtmlSmiley * Gaim__GtkUI__IMHtml__Smiley; | |
| 67 | typedef GtkIMHtmlOptions Gaim__GtkUI__IMHtml__Options; | |
| 14478 | 68 | |
| 69 | /* gtkimhtmltoolbar.h */ | |
| 14629 | 70 | typedef GtkIMHtmlToolbar * Gaim__GtkUI__IMHtmlToolbar; |
| 14478 | 71 | |
| 72 | /* gtkmenutray.h */ | |
| 14629 | 73 | typedef GaimGtkMenuTray * Gaim__GtkUI__MenuTray; |
| 14478 | 74 | |
| 75 | /* gtkstatusbox.h */ | |
| 14629 | 76 | typedef GtkGaimStatusBox * Gaim__GtkUI__StatusBox; |