summaryrefslogtreecommitdiff
path: root/applets/clock/clock.c
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2017-01-09 19:20:21 -0500
committerlukefromdc <[email protected]>2017-01-09 19:21:17 -0500
commit02b7511302cef8b527cbc45c1ac674ab28f2dc01 (patch)
tree8b12a31f970fbe70e40277014e8b971b404d7853 /applets/clock/clock.c
parent0802dc27cae8b42766704e8e848f7fc035c66019 (diff)
downloadmate-panel-02b7511302cef8b527cbc45c1ac674ab28f2dc01.tar.bz2
mate-panel-02b7511302cef8b527cbc45c1ac674ab28f2dc01.tar.xz
Clock: remove non-working signal, fix warning
Comment out size-request signal for label, this no longer works if it ever did. Then comment out function this leaves unused.
Diffstat (limited to 'applets/clock/clock.c')
-rw-r--r--applets/clock/clock.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/applets/clock/clock.c b/applets/clock/clock.c
index 7685ff86..6293a8b6 100644
--- a/applets/clock/clock.c
+++ b/applets/clock/clock.c
@@ -1256,6 +1256,8 @@ do_not_eat_button_press (GtkWidget *widget,
jumping when proportional fonts are used. We must take care to
call "unfix_size" whenever options are changed or such where
we'd want to forget the fixed size */
+/*FIXME-this cannot be used because size request gsignal invalid for label */
+/*
static void
clock_size_request (GtkWidget *clock, GtkRequisition *req, gpointer data)
{
@@ -1268,7 +1270,7 @@ clock_size_request (GtkWidget *clock, GtkRequisition *req, gpointer data)
req->width = cd->fixed_width;
req->height = cd->fixed_height;
}
-
+*/
static void
clock_update_text_gravity (GtkWidget *label)
{
@@ -1328,9 +1330,12 @@ create_main_clock_label (ClockData *cd)
GtkWidget *label;
label = gtk_label_new (NULL);
+/*Fixme-this is invalid for labels with any recent GTK3 version, maybe all of them*/
+/*
g_signal_connect (label, "size_request",
G_CALLBACK (clock_size_request),
cd);
+*/
g_signal_connect_swapped (label, "style_set",
G_CALLBACK (unfix_size),
cd);