diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-22 03:10:43 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-22 03:14:27 (EDT) |
commit | 110426446cbb78b775a14a70fa6db54c2c29b4ef (patch) | |
tree | af0d39726706189ce0ac1f35cad2c381e2b58feb /src | |
parent | a26f5043d90e903710ef495e14eecd48fe68211d (diff) | |
download | marquee-110426446cbb78b775a14a70fa6db54c2c29b4ef.zip marquee-110426446cbb78b775a14a70fa6db54c2c29b4ef.tar.gz marquee-110426446cbb78b775a14a70fa6db54c2c29b4ef.tar.bz2 |
MqTabChrome: Don't set NULL URI in URI entry
Fixes:
(marquee:xxxxx): Gtk-CRITICAL **: gtk_entry_set_text: assertion 'text != NULL' failed
Diffstat (limited to 'src')
-rw-r--r-- | src/tab-chrome.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c index 1785001..dc91c9e 100644 --- a/src/tab-chrome.c +++ b/src/tab-chrome.c @@ -414,7 +414,9 @@ navigation_toolbar_new(MqTabChrome *chrome, gchar *uri) /* URI bar */ uri_tool_item = gtk_tool_item_new(); chrome->uri_entry = gtk_entry_new(); - gtk_entry_set_text(GTK_ENTRY(chrome->uri_entry), uri); + if (uri) { + gtk_entry_set_text(GTK_ENTRY(chrome->uri_entry), uri); + } gtk_entry_set_placeholder_text(GTK_ENTRY(chrome->uri_entry), "URI..."); gtk_entry_set_icon_from_icon_name(GTK_ENTRY(chrome->uri_entry), |