Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Fri, 02 Nov 2012 20:48:49 UTC
Commit: 9f32fdd1a4c54ba035c2f655bea6096c3b74fbe9
https://github.com/geany/geany/commit/9f32fdd1a4c54ba035c2f655bea6096c3b74f…
Log Message:
-----------
Printing: draw the vertical separator line more accurately
Use the dimensions and offsets used by Scintilla to position our
separator line, since its position depends on where Scintilla drawn.
Closes #3580268.
Modified Paths:
--------------
src/printing.c
Modified: src/printing.c
15 files changed, 7 insertions(+), 8 deletions(-)
===================================================================
@@ -462,18 +462,17 @@ static void draw_page(GtkPrintOperation *operation, GtkPrintContext *context,
if (printing_prefs.print_line_numbers)
{ /* print a thin line between the line number margin and the data */
- gint y1 = 0, y2 = height;
+ gdouble y1 = dinfo->fr.rc.top * dinfo->sci_scale;
+ gdouble y2 = dinfo->fr.rc.bottom * dinfo->sci_scale;
+ gdouble x = dinfo->fr.rc.left * dinfo->sci_scale + dinfo->margin_width;
if (printing_prefs.print_page_header)
- y1 += (dinfo->line_height * 3) - 2; /* "- 2": to connect the line number line to
- * the page header frame */
-
- if (printing_prefs.print_page_numbers)
- y2 -= (dinfo->line_height * 2) - 2;
+ y1 -= 2 - 0.3; /* to connect the line number line to the page header frame,
+ * 2 is the border, and 0.3 the line width */
cairo_set_line_width(cr, 0.3);
- cairo_move_to(cr, dinfo->margin_width, y1);
- cairo_line_to(cr, dinfo->margin_width, y2);
+ cairo_move_to(cr, x, y1);
+ cairo_line_to(cr, x, y2);
cairo_stroke(cr);
}
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Tue, 01 Jan 2013 18:04:47 UTC
Commit: b9c1c9093890506b85fc6bd3db9da410717bdd20
https://github.com/geany/geany/commit/b9c1c9093890506b85fc6bd3db9da410717bd…
Log Message:
-----------
Revert "Alter default and document icon setting"
This reverts commit 306eaab3916649567c892215ad8390b9d39de82f.
Modified Paths:
--------------
doc/geany.txt
src/keyfile.c
Modified: doc/geany.txt
2 files changed, 0 insertions(+), 2 deletions(-)
===================================================================
@@ -2512,8 +2512,6 @@ msgwin_messages_visible Whether to show the Messages tab in the tru
Messages Window
msgwin_scribble_visible Whether to show the Scribble tab in the true immediately
Messages Window
-use_geany_icon Whether to use the Geany icon on the false on restart
- window instead of the theme's icon
================================ ========================================= ========== ===========
By default, statusbar_template is empty. This tells Geany to use its
Modified: src/keyfile.c
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -243,7 +243,7 @@ static void init_pref_groups(void)
/* use the Geany icon instead of the theme */
stash_group_add_boolean(group, &main_use_geany_icon,
- "use_geany_icon", FALSE);
+ "use_geany_icon", TRUE);
}
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).