Commit 30df75c3 authored by Rodney Dawes's avatar Rodney Dawes Committed by Rodney Dawes

Add an override method for the parent's clicked event and generate and

2006-11-01  Rodney Dawes  <dobey@novell.com>

	* libtile/tile.c: Add an override method for the parent's clicked event
	and generate and send off a tile action event
parent 05fdda17
2006-11-01 Rodney Dawes <dobey@novell.com>
* libtile/tile.c: Add an override method for the parent's clicked event
and generate and send off a tile action event
2006-10-31 Rodney Dawes <dobey@novell.com>
* libtile/application-tile.c (application_tile_setup):
......
......@@ -43,6 +43,7 @@ static void tile_setup (Tile *);
static void tile_enter (GtkButton * widget);
static void tile_leave (GtkButton * widget);
static void tile_clicked (GtkButton *widget);
static gboolean tile_focus_in (GtkWidget *, GdkEventFocus *);
static gboolean tile_focus_out (GtkWidget *, GdkEventFocus *);
......@@ -109,6 +110,7 @@ tile_class_init (TileClass * this_class)
button_class->enter = tile_enter;
button_class->leave = tile_leave;
button_class->clicked = tile_clicked;
this_class->tile_explicit_enable = NULL;
this_class->tile_explicit_disable = NULL;
......@@ -289,6 +291,18 @@ tile_leave (GtkButton * widget)
TILE (widget)->entered = FALSE;
}
static void
tile_clicked (GtkButton * widget)
{
TileEvent *tile_event;
tile_event = g_new0 (TileEvent, 1);
tile_event->type = TILE_EVENT_ACTIVATED_KEYBOARD;
tile_event->time = gtk_get_current_event_time ();
g_signal_emit (widget, tile_signals[TILE_ACTIVATED_SIGNAL], 0, tile_event);
}
static gboolean
tile_focus_in (GtkWidget * widget, GdkEventFocus * event)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment