Commit 1adf4af3 authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko
Browse files

notification: Stop subclassing GtkFrame

While it is derivable in GTK4, it will have an unwanted style.

Also fix the type in G_DEFINE_TYPE().

Part-of: <!1034>
parent 7608ba17
......@@ -24,7 +24,7 @@
#include "ephy-notification-container.h"
struct _EphyNotification {
GtkFrame parent_instance;
GtkBin parent_instance;
GtkWidget *grid;
......@@ -36,17 +36,13 @@ struct _EphyNotification {
char *body_msg;
};
struct _EphyNotificationClass {
GtkFrameClass parent_class;
};
enum {
PROP_0,
PROP_HEAD,
PROP_BODY
};
G_DEFINE_TYPE (EphyNotification, ephy_notification, GTK_TYPE_GRID);
G_DEFINE_TYPE (EphyNotification, ephy_notification, GTK_TYPE_BIN);
static void
ephy_notification_constructed (GObject *object)
......
......@@ -27,7 +27,7 @@ G_BEGIN_DECLS
#define EPHY_TYPE_NOTIFICATION (ephy_notification_get_type ())
G_DECLARE_FINAL_TYPE (EphyNotification, ephy_notification, EPHY, NOTIFICATION, GtkFrame)
G_DECLARE_FINAL_TYPE (EphyNotification, ephy_notification, EPHY, NOTIFICATION, GtkBin)
EphyNotification *ephy_notification_new (const char *head,
const char *body);
......
Supports Markdown
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