summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-12-17 08:16:37 +0100
committerLuke from DC <[email protected]>2021-12-19 11:29:43 +0000
commit72f4bdd41343647e79b719b652a50afe8d42e162 (patch)
treee8a63e87e8ffc359b2b13c13b9fa02a6fd94c25b
parent440a9eef740e04821393c383c23d3937ea3bc28e (diff)
downloadmate-panel-72f4bdd41343647e79b719b652a50afe8d42e162.tar.bz2
mate-panel-72f4bdd41343647e79b719b652a50afe8d42e162.tar.xz
clock: Define _clock_get_widget instead of using one sentence method
-rw-r--r--applets/clock/clock.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/applets/clock/clock.c b/applets/clock/clock.c
index 5383ca92..f4a68a2a 100644
--- a/applets/clock/clock.c
+++ b/applets/clock/clock.c
@@ -85,6 +85,8 @@
#define KEY_TEMPERATURE_UNIT "temperature-unit"
#define KEY_SPEED_UNIT "speed-unit"
+#define _clock_get_widget(x,y) (GTK_WIDGET (gtk_builder_get_object ((x)->builder, (y))))
+
enum {
COL_CITY_NAME = 0,
COL_CITY_TZ,
@@ -241,13 +243,6 @@ clock_box_class_init (ClockBoxClass *klass)
/* Clock */
-static inline GtkWidget *
-_clock_get_widget (ClockData *cd,
- const char *name)
-{
- return GTK_WIDGET (gtk_builder_get_object (cd->builder, name));
-}
-
static void
unfix_size (ClockData *cd)
{