diff options
author | JP Rosevear <jpr@novell.com> | 2004-11-26 23:15:36 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-11-26 23:15:36 +0800 |
commit | ba0bc7dff09ade6b8014183c44c4c44b42ed1396 (patch) | |
tree | 0394c1dde4cb58e40b4694e0a486f5e37f147750 /widgets/misc/e-task-bar.c | |
parent | f484ce17b3651e8d741e789621f59baef1652974 (diff) | |
download | gsoc2013-evolution-ba0bc7dff09ade6b8014183c44c4c44b42ed1396.tar.gz gsoc2013-evolution-ba0bc7dff09ade6b8014183c44c4c44b42ed1396.tar.zst gsoc2013-evolution-ba0bc7dff09ade6b8014183c44c4c44b42ed1396.zip |
test prog
2004-11-26 JP Rosevear <jpr@novell.com>
* test-info-label.c: test prog
* e-url-entry.c: get image directly from icon factory
* e-combo-button.c: ditto; convert to G_DEFINE_TYPE
* e-activity-handler.c: convert to G_DEFINE_TYPE
* e-task-widget.c: ditto
* e-task-bar.c: ditto
* e-multi-config-dialog.c: ditto
* e-dropdown-button.c: ditto
* e-cell-renderer-combo.c: ditto
* e-cell-date-edit.c: ditto
* e-calendar.c: ditto
* e-calendar-item.c: ditto
* Makefile.am: don't build the title bar, build an info label test
program
svn path=/trunk/; revision=27999
Diffstat (limited to 'widgets/misc/e-task-bar.c')
-rw-r--r-- | widgets/misc/e-task-bar.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/widgets/misc/e-task-bar.c b/widgets/misc/e-task-bar.c index bb1fdb96ff..3ed243e18f 100644 --- a/widgets/misc/e-task-bar.c +++ b/widgets/misc/e-task-bar.c @@ -26,24 +26,19 @@ #include "e-task-bar.h" -#include <gal/util/e-util.h> #include "widgets/misc/e-clipped-label.h" - struct _ETaskBarPrivate { EClippedLabel *message_label; GtkHBox *hbox; }; -#define PARENT_TYPE gtk_hbox_get_type () -static GtkHBoxClass *parent_class = NULL; - - /* WARNING: Ugly hack starts here. */ - #define MAX_ACTIVITIES_PER_COMPONENT 2 +G_DEFINE_TYPE (ETaskBar, e_task_bar, GTK_TYPE_HBOX) + static void reduce_displayed_activities_per_component (ETaskBar *task_bar) { @@ -89,13 +84,12 @@ reduce_displayed_activities_per_component (ETaskBar *task_bar) static void -class_init (GtkObjectClass *object_class) +e_task_bar_class_init (ETaskBarClass *klass) { - parent_class = g_type_class_ref(PARENT_TYPE); } static void -init (ETaskBar *task_bar) +e_task_bar_init (ETaskBar *task_bar) { GtkWidget *label, *hbox; @@ -227,5 +221,3 @@ e_task_bar_get_task_widget (ETaskBar *task_bar, return E_TASK_WIDGET (child_info->widget); } - -E_MAKE_TYPE (e_task_bar, "ETaskBar", ETaskBar, class_init, init, PARENT_TYPE) |