diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-06-24 23:25:44 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-06-24 23:25:44 +0800 |
commit | 4e1fe266e73c23d628ebf4765ae931a7b91b4e3f (patch) | |
tree | 6a8e246b945d4af7666c5729f45882ce36e94acb /shell/e-task-widget.c | |
parent | ea40bb0823d313579eb992f441d6fd08f7ef23a7 (diff) | |
download | gsoc2013-evolution-4e1fe266e73c23d628ebf4765ae931a7b91b4e3f.tar.gz gsoc2013-evolution-4e1fe266e73c23d628ebf4765ae931a7b91b4e3f.tar.zst gsoc2013-evolution-4e1fe266e73c23d628ebf4765ae931a7b91b4e3f.zip |
Derive ETaskWidget from GtkEventBox instead of GtkFrame so that we can
get button_press events from it. Also, get the EActivtyHandler to
properly dispatch "Clicked" events when the user clicks on an
ETaskWidget.
svn path=/trunk/; revision=10450
Diffstat (limited to 'shell/e-task-widget.c')
-rw-r--r-- | shell/e-task-widget.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/shell/e-task-widget.c b/shell/e-task-widget.c index e67baaf0e7..384e1cc27f 100644 --- a/shell/e-task-widget.c +++ b/shell/e-task-widget.c @@ -27,6 +27,7 @@ #include "e-task-widget.h" +#include <gtk/gtkframe.h> #include <gtk/gtkhbox.h> #include <gtk/gtklabel.h> #include <gtk/gtkpixmap.h> @@ -40,8 +41,8 @@ #define SPACING 2 -#define PARENT_TYPE (gtk_frame_get_type ()) -static GtkFrameClass *parent_class = NULL; +#define PARENT_TYPE (gtk_event_box_get_type ()) +static GtkEventBoxClass *parent_class = NULL; struct _ETaskWidgetPrivate { GdkPixbuf *icon_pixbuf; @@ -95,6 +96,7 @@ e_task_widget_construct (ETaskWidget *task_widget, GdkPixmap *pixmap; GdkBitmap *mask; GtkWidget *box; + GtkWidget *frame; g_return_if_fail (task_widget != NULL); g_return_if_fail (E_IS_TASK_WIDGET (task_widget)); @@ -103,10 +105,13 @@ e_task_widget_construct (ETaskWidget *task_widget, priv = task_widget->priv; - gtk_frame_set_shadow_type (GTK_FRAME (task_widget), GTK_SHADOW_IN); + frame = gtk_frame_new (NULL); + gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN); + gtk_container_add (GTK_CONTAINER (task_widget), frame); + gtk_widget_show (frame); box = gtk_hbox_new (FALSE, 0); - gtk_container_add (GTK_CONTAINER (task_widget), box); + gtk_container_add (GTK_CONTAINER (frame), box); gtk_widget_show (box); priv->icon_pixbuf = gdk_pixbuf_ref (icon_pixbuf); |