diff options
author | rbuj <[email protected]> | 2021-12-13 23:18:26 +0100 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2022-03-22 16:25:09 -0400 |
commit | b3892cf644c693fef44b5daf55a0b66a667ac147 (patch) | |
tree | 4d1acd062b9b7adc49239036cfe156444c88374c /stickynotes/stickynotes_applet.c | |
parent | 0685093d85f70823d71397e35f3c2acf09a0c083 (diff) | |
download | mate-applets-b3892cf644c693fef44b5daf55a0b66a667ac147.tar.bz2 mate-applets-b3892cf644c693fef44b5daf55a0b66a667ac147.tar.xz |
Fix some -Wfloat-conversion warnings
Diffstat (limited to 'stickynotes/stickynotes_applet.c')
-rw-r--r-- | stickynotes/stickynotes_applet.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/stickynotes/stickynotes_applet.c b/stickynotes/stickynotes_applet.c index c697151e..fd903e1e 100644 --- a/stickynotes/stickynotes_applet.c +++ b/stickynotes/stickynotes_applet.c @@ -166,6 +166,7 @@ stickynotes_applet_init (MatePanelApplet *mate_panel_applet) { cairo_t *cr; gint size, scale; + int screen_height; stickynotes = g_new (StickyNotes, 1); @@ -208,8 +209,8 @@ stickynotes_applet_init (MatePanelApplet *mate_panel_applet) G_CALLBACK (preferences_apply_cb), NULL); /* Max height for large notes*/ - stickynotes->max_height = - 0.8 * HeightOfScreen (gdk_x11_screen_get_xscreen (gdk_screen_get_default ())); + screen_height = HeightOfScreen (gdk_x11_screen_get_xscreen (gdk_screen_get_default ())); + stickynotes->max_height = (int) (0.8 * (double) screen_height); /* Load sticky notes */ stickynotes_load (gtk_widget_get_screen (GTK_WIDGET (mate_panel_applet))); |