Mercurial > pidgin.yaz
view finch/libgnt/gntprogressbar.h @ 27109:fdc0035bea5a
Change the way we parse messages on MySpace a little bit. This
fixes #8846: people using web myspaceIM can't respond to pidgin myspaceIM
For some reason IMs send using the myspace web site are sent so that
they won't become offline messages if the other person is offline.
I'm not really sure why that decision was made.
So now we treat messages with bm 1 the same as messages with bm 121. This means
we have to combine the function that parses out typing notification with
the function that parses IMs. And we check for typing notifications by
looking for %typing%. Which means if someone sends the IM "%typing%" with
no markup then we'll interpret it as a typing notification. And there's
nothing we can do to differentiate between the two. I asked.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 04 Jun 2009 05:19:49 +0000 |
parents | cd7fa6306f85 |
children | 5876584828e8 |
line wrap: on
line source
/** * @file gntprogressbar.h Progress Bar API * @ingroup gnt */ /* * GNT - The GLib Ncurses Toolkit * * GNT is the legal property of its developers, whose names are too numerous * to list here. Please refer to the COPYRIGHT file distributed with this * source distribution. * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */ #ifndef GNT_PROGRESS_BAR_H #define GNT_PROGRESS_BAR_H #include "gnt.h" #include "gntwidget.h" #define GNT_TYPE_PROGRESS_BAR (gnt_progress_bar_get_type ()) #define GNT_PROGRESS_BAR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNT_TYPE_PROGRESS_BAR, GntProgressBar)) #define GNT_PROGRESS_BAR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GNT_TYPE_PROGRESS_BAR, GntProgressBarClass)) #define GNT_IS_PROGRESS_BAR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNT_TYPE_PROGRESS_BAR)) #define GNT_IS_PROGRESS_BAR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GNT_TYPE_PROGRESS_BAR)) #define GNT_PROGRESS_BAR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GNT_TYPE_PROGRESS_BAR, GntProgressBarClass)) typedef enum _GntProgressBarOrientation { GNT_PROGRESS_LEFT_TO_RIGHT, GNT_PROGRESS_RIGHT_TO_LEFT, GNT_PROGRESS_BOTTOM_TO_TOP, GNT_PROGRESS_TOP_TO_BOTTOM, } GntProgressBarOrientation; typedef struct _GntProgressBar GntProgressBar; typedef struct _GntProgressBarClass { GntWidgetClass parent; void (*gnt_reserved1)(void); void (*gnt_reserved2)(void); void (*gnt_reserved3)(void); void (*gnt_reserved4)(void); } GntProgressBarClass; G_BEGIN_DECLS /** * Get the GType for GntProgressBar * @return The GType for GntProrgressBar **/ GType gnt_progress_bar_get_type (void); /** * Create a new GntProgressBar * @return The new GntProgressBar **/ GntWidget * gnt_progress_bar_new (void); /** * Set the progress for a progress bar * * @param pbar The GntProgressBar * @param fraction The value between 0 and 1 to display **/ void gnt_progress_bar_set_fraction (GntProgressBar *pbar, gdouble fraction); /** * Set the orientation for a progress bar * * @param pbar The GntProgressBar * @param orientation The orientation to use **/ void gnt_progress_bar_set_orientation (GntProgressBar *pbar, GntProgressBarOrientation orientation); /** * Controls whether the progress value is shown * * @param pbar The GntProgressBar * @param show A boolean indicating if the value is shown **/ void gnt_progress_bar_set_show_progress (GntProgressBar *pbar, gboolean show); /** * Get the progress that is displayed * * @param pbar The GntProgressBar * @return The progress displayed as a value between 0 and 1 **/ gdouble gnt_progress_bar_get_fraction (GntProgressBar *pbar); /** * Get the orientation for the progress bar * * @param pbar The GntProgressBar * @return The current orientation of the progress bar **/ GntProgressBarOrientation gnt_progress_bar_get_orientation (GntProgressBar *pbar); /** * Get a boolean describing if the progress value is shown * * @param pbar The GntProgressBar * @return A boolean @c true if the progress value is shown, @c false otherwise. **/ gboolean gnt_progress_bar_get_show_progress (GntProgressBar *pbar); G_END_DECLS #endif /* GNT_PROGRESS_BAR_H */