date-chooser-day: Make it a button

This stops reimplementing a flat button and use GtkButton directly
instead.
This commit is contained in:
Adrien Plazas
2022-06-16 09:29:16 +02:00
parent 9c641fa597
commit f9c4501d6c
4 changed files with 35 additions and 90 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
/* GTK - The GIMP Toolkit
* Copyright (C) 2015 Red Hat, Inc.
* Copyright (C) 2022 Purism SPC
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -17,12 +18,12 @@
#pragma once
#include <adwaita.h>
#include <gtk/gtk.h>
G_BEGIN_DECLS
#define GCAL_TYPE_DATE_CHOOSER_DAY (gcal_date_chooser_day_get_type())
G_DECLARE_FINAL_TYPE (GcalDateChooserDay, gcal_date_chooser_day, GCAL, DATE_CHOOSER_DAY, AdwBin)
G_DECLARE_FINAL_TYPE (GcalDateChooserDay, gcal_date_chooser_day, GCAL, DATE_CHOOSER_DAY, GtkButton)
GtkWidget* gcal_date_chooser_day_new (void);