diff options
author | Miguel de Icaza <miguel@src.gnome.org> | 2000-05-12 08:47:42 +0800 |
---|---|---|
committer | Miguel de Icaza <miguel@src.gnome.org> | 2000-05-12 08:47:42 +0800 |
commit | f4e98799fdf50ceed1e3b1b84d41b92dcde35e97 (patch) | |
tree | 7bf861793bcd621ed1864cbd478cc3a339de5b23 /widgets/e-table/e-table-header-item.c | |
parent | 9634ad048462c087a47d4728e3462aece3b03a50 (diff) | |
download | gsoc2013-evolution-f4e98799fdf50ceed1e3b1b84d41b92dcde35e97.tar gsoc2013-evolution-f4e98799fdf50ceed1e3b1b84d41b92dcde35e97.tar.gz gsoc2013-evolution-f4e98799fdf50ceed1e3b1b84d41b92dcde35e97.tar.bz2 gsoc2013-evolution-f4e98799fdf50ceed1e3b1b84d41b92dcde35e97.tar.lz gsoc2013-evolution-f4e98799fdf50ceed1e3b1b84d41b92dcde35e97.tar.xz gsoc2013-evolution-f4e98799fdf50ceed1e3b1b84d41b92dcde35e97.tar.zst gsoc2013-evolution-f4e98799fdf50ceed1e3b1b84d41b92dcde35e97.zip |
*** empty log message ***
svn path=/trunk/; revision=3001
Diffstat (limited to 'widgets/e-table/e-table-header-item.c')
-rw-r--r-- | widgets/e-table/e-table-header-item.c | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/widgets/e-table/e-table-header-item.c b/widgets/e-table/e-table-header-item.c index f916ce447e..6923fffd0a 100644 --- a/widgets/e-table/e-table-header-item.c +++ b/widgets/e-table/e-table-header-item.c @@ -27,6 +27,13 @@ #include "arrow-up.xpm" #include "arrow-down.xpm" +enum { + BUTTON_PRESSED, + LAST_SIGNAL +}; + +static guint ethi_signals [LAST_SIGNAL] = { 0, }; + #define ARROW_DOWN_HEIGHT 16 #define ARROW_PTR 7 @@ -925,6 +932,13 @@ ethi_start_drag (ETableHeaderItem *ethi, GdkEvent *event) g_hash_table_destroy (arrows); } +static void +ethi_button_pressed (ETableHeaderItem *ethi, GdkEventButton *event) +{ + gtk_signal_emit (GTK_OBJECT (ethi), + ethi_signals [BUTTON_PRESSED], event); +} + /* FIXME: Implement this. */ #if 0 static GtkMenu * @@ -1029,7 +1043,8 @@ ethi_event (GnomeCanvasItem *item, GdkEvent *e) ethi->maybe_drag = TRUE; } else if (e->button.button == 3){ ethi_header_context_menu (ethi, &e->button); - } + } else + ethi_button_pressed (ethi, &e->button); } break; @@ -1147,6 +1162,15 @@ ethi_class_init (GtkObjectClass *object_class) add_col_pixmap = gdk_pixmap_colormap_create_from_xpm_d ( NULL, dnd_colormap, &add_col_mask, NULL, add_col_xpm); + + ethi_signals [BUTTON_PRESSED] = + gtk_signal_new ("button_pressed", + GTK_RUN_LAST, + object_class->type, + GTK_SIGNAL_OFFSET (ETableHeaderItemClass, button_pressed), + gtk_marshal_NONE__POINTER, + GTK_TYPE_NONE, 1, GTK_TYPE_POINTER); + } static void |