Commit f8417a54 authored by Adrien Plazas's avatar Adrien Plazas Committed by Guido Gunther

dialer: Descend from GtkBin directly

Makes HdyDialer descend from GtkBin directly rather than from
GtkEventBox. GtkEventBox will be dropped in GTK+ 4 and brings no
functionality to HdyDialer.
parent d39de27b
......@@ -32,7 +32,7 @@ typedef struct
GtkReliefStyle relief;
} HdyDialerPrivate;
G_DEFINE_TYPE_WITH_PRIVATE (HdyDialer, hdy_dialer, GTK_TYPE_EVENT_BOX)
G_DEFINE_TYPE_WITH_PRIVATE (HdyDialer, hdy_dialer, GTK_TYPE_BIN)
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, GtkEventBox)
G_DECLARE_DERIVABLE_TYPE (HdyDialer, hdy_dialer, HDY, DIALER, GtkBin)
/**
* HdyDialerClass:
......@@ -26,7 +26,7 @@ G_DECLARE_DERIVABLE_TYPE (HdyDialer, hdy_dialer, HDY, DIALER, GtkEventBox)
*/
struct _HdyDialerClass
{
GtkEventBoxClass parent_class;
GtkBinClass parent_class;
/* Signals
*/
......
......@@ -2,10 +2,8 @@
<!-- Generated with glade 3.22.1 -->
<interface>
<requires lib="gtk+" version="3.20"/>
<template class="HdyDialer" parent="GtkEventBox">
<template class="HdyDialer" parent="GtkBin">
<property name="can_focus">False</property>
<property name="visible_window">False</property>
<property name="above_child">False</property>
<child>
<object class="GtkGrid" id="grid">
<property name="can_focus">False</property>
......
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