[Xfce4-commits] [xfce/xfce4-settings] 03/05: display: Fixed warning and removed ratio

noreply at xfce.org noreply at xfce.org
Thu Jan 2 22:54:26 CET 2020


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-settings.

commit 050de79284bf2b427f8adec50673f53f82da258d
Author: Florian Schüller <florian.schueller at gmail.com>
Date:   Wed Dec 25 20:53:35 2019 +0100

    display: Fixed warning and removed ratio
    
    Removed ratio to avoid the drop-down to be overloaded
---
 dialogs/display-settings/main.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dialogs/display-settings/main.c b/dialogs/display-settings/main.c
index e070601..fe1a0cb 100644
--- a/dialogs/display-settings/main.c
+++ b/dialogs/display-settings/main.c
@@ -752,13 +752,13 @@ display_setting_resolutions_populate (GtkBuilder *builder)
                 guint gcd_tmp = gcd (modes[n].width, modes[n].height);
                 guint format_x = modes[n].width / gcd_tmp;
                 guint format_y = modes[n].height / gcd_tmp;
-                name = g_strdup_printf ("%dx%d <span fgalpha='50%'>%d:%d - %.3f</span>", modes[n].width,
-                                        modes[n].height, format_x, format_y, ratio);
+                name = g_strdup_printf ("%dx%d <span fgalpha='50%%'>%d:%d</span>", modes[n].width,
+                                        modes[n].height, format_x, format_y);
             }
             else
             {
-                name = g_strdup_printf ("%dx%d <span fgalpha='50%'>%s - %.3f</span>", modes[n].width,
-                                        modes[n].height, ratio_text, ratio);
+                name = g_strdup_printf ("%dx%d <span fgalpha='50%%'>%s</span>", modes[n].width,
+                                        modes[n].height, ratio_text);
             }
             g_free(ratio_text);
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list