| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The font size that GtkSettings provides is multiplied to reach the
default values in WebKitWebSettings in a common 96dpi display. Those
are 12 for default-font-size and 10 for monospace-font-size, so the
monospace font is calculated as 2 units less from the default Gtk+
font.
This is similar to Epiphany approach, when the "Use system fonts"
is checked in the preferences dialog.
This workarounds #3428 "Browse should set DPI for XO screen", tested
with screenshots that the resulting font sizes are similar to the
previous Browse based on Gecko in the XO.
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Daniel Drake <dsd@laptop.org>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Color parameter in get_image() method of class LinkButton is being
passed with type str when inside a session, but is type unicode when
read from a previous session, because json stores unicode. And
Rsvg.Handle.new_from_data() needs a single byte string.
This fixes #3402 .
Also removed unused parameters in LinkButton constructor.
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Calling the _set_status and _set_progress methods in the web toolbar
directly when a new tab is activated.
Also the callback for load-status is disconnected now in the previous
tab, like the other callbacks.
Removed the update of the navigation buttons when the loading status
changes. This is only needed when the adress changes or when the tabs
are switched.
Removed the title set to None when loading status chenges, this was
giving the following Gtk error:
Gtk-CRITICAL **: gtk_entry_set_text: assertion `text != NULL' failed
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
If the MIME type of the file that the activity reads is not
"text/plain" or "text/uri-list", it will load the file as-is in the
default tab. But WebKit needs an URI, and we are passing the file
path. Appending 'file://' to the file path solves the issue.
This fixes second part of #3300 .
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The SQL model sets "text" as the fields type for uri and title.
However, sqlite uses a dynamic type sistem [1] and our Place class was
initializing those attributes with None. As a consequence, when the
user types something in the toolbar entry, and a search is made to
show a drop-down list for autocomplete, the drop-down list is being
filled with None, but is defined as Gtk.ListStore(str, str). This is
provoking a GTK+ error,that crashes the activity in the XO, as bug
In order to keep backwards compatibility, if the database returns None
for does fields, they are translated to empty strings in
_place_from_row() method of place.SqliteStore .
[1] http://sqlite.org/datatype3.html
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Signed-off-by: Simon Schampijer <simon@laptop.org>
|