[gnome-panel] clock: remove unused variables from ClockApplet struct
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] clock: remove unused variables from ClockApplet struct
- Date: Tue, 27 Apr 2021 17:35:11 +0000 (UTC)
commit 41ca5fa50a1d05fd7b523762a39c4751ba3368d3
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Apr 27 09:09:35 2021 +0300
clock: remove unused variables from ClockApplet struct
modules/clock/clock-applet.c | 14 --------------
1 file changed, 14 deletions(-)
---
diff --git a/modules/clock/clock-applet.c b/modules/clock/clock-applet.c
index 6afe97cf0..340fc948f 100644
--- a/modules/clock/clock-applet.c
+++ b/modules/clock/clock-applet.c
@@ -82,7 +82,6 @@ struct _ClockApplet
GtkWidget *panel_weather_icon;
GtkWidget *panel_temperature_label;
- GtkWidget *props;
GtkWidget *calendar_popup;
GtkWidget *clock_vbox;
@@ -119,18 +118,8 @@ struct _ClockApplet
GList *location_tiles;
/* runtime data */
- time_t current_time;
GnomeWallClock *wall_clock;
GtkAllocation old_allocation;
-
- GtkWidget *showseconds_check;
- GtkWidget *showdate_check;
- GtkWidget *custom_hbox;
- GtkWidget *custom_label;
- GtkWidget *custom_entry;
- gboolean custom_format_shown;
-
- gboolean can_handle_format_12;
};
G_DEFINE_TYPE (ClockApplet, clock_applet, GP_TYPE_APPLET)
@@ -850,8 +839,6 @@ create_clock_widget (ClockApplet *cd)
gtk_container_add (GTK_CONTAINER (cd), cd->panel_button);
gtk_container_set_border_width (GTK_CONTAINER (cd), 0);
- cd->props = NULL;
-
update_panel_weather (cd);
/* Refresh the clock so that it paints its first state */
@@ -1989,7 +1976,6 @@ clock_applet_dispose (GObject *object)
g_clear_object (&applet->wall_clock);
- g_clear_pointer (&applet->props, gtk_widget_destroy);
g_clear_pointer (&applet->calendar_popup, gtk_widget_destroy);
g_clear_object (&applet->datetime_appinfo);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]