Commit c1be2ec3 authored by Guido Gunther's avatar Guido Gunther

HdyDialer: Derive from GtkEventBox instead of GtkGrid

This allows us to catch keyboard events

It also fixes the wrong parent_class.
parent 6c61bf1f
......@@ -29,7 +29,7 @@ typedef struct
gboolean show_action_buttons;
} HdyDialerPrivate;
G_DEFINE_TYPE_WITH_PRIVATE (HdyDialer, hdy_dialer, GTK_TYPE_GRID)
G_DEFINE_TYPE_WITH_PRIVATE (HdyDialer, hdy_dialer, GTK_TYPE_EVENT_BOX)
enum {
PROP_0,
......
......@@ -17,7 +17,7 @@ G_BEGIN_DECLS
#define HDY_TYPE_DIALER (hdy_dialer_get_type())
G_DECLARE_DERIVABLE_TYPE (HdyDialer, hdy_dialer, HDY, DIALER, GtkGrid)
G_DECLARE_DERIVABLE_TYPE (HdyDialer, hdy_dialer, HDY, DIALER, GtkEventBox)
/**
* HdyDialerClass:
......@@ -26,7 +26,7 @@ G_DECLARE_DERIVABLE_TYPE (HdyDialer, hdy_dialer, HDY, DIALER, GtkGrid)
*/
struct _HdyDialerClass
{
GtkButtonClass parent_class;
GtkEventBoxClass parent_class;
/* Signals
*/
......
This diff is collapsed.
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