[Github-comments] [geany/geany] Show zoom level in status bar. (#1697)

LarsGit223 notifications at xxxxx
Thu Jul 18 18:57:08 UTC 2019


LarsGit223 commented on this pull request.



> @@ -305,6 +306,21 @@ static gchar *create_statusbar_statistics(GeanyDocument *doc,
 				g_string_append_printf(stats_str, "%d",
 					sci_get_style_at(doc->editor->sci, pos));
 				break;
+			case 'z':
+				zoom = sci_get_zoom(doc->editor->sci);
+				if (zoom != 0)
+				{
+					gint size, percent;
+
+					size = sci_get_fontsize(doc->editor->sci, STYLE_DEFAULT);
+					if (size > 0)
+					{
+						percent = (size + zoom) * 100 / size;
+						g_string_append_c(stats_str, ' ');

Done.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1697#discussion_r305068054
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20190718/95d12725/attachment.html>


More information about the Github-comments mailing list