diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2017-04-15 00:39:25 +0800 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2017-04-15 00:39:25 +0800 |
| commit | de142e6ec460efa4335ad197dbbfd5e4a3110098 (patch) | |
| tree | 31cfa3d1c32d61e622a4f6e7dbffe5f454aa4384 /dash | |
| parent | 52784a352ec43729fa65c3784f927fad30f14f23 (diff) | |
Dash: get better neko
(bzr r4228.1.1)
Diffstat (limited to 'dash')
| -rw-r--r-- | dash/DashView.cpp | 1 | ||||
| -rw-r--r-- | dash/ResultRendererTile.cpp | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/dash/DashView.cpp b/dash/DashView.cpp index de8f834c5..e7c516c30 100644 --- a/dash/DashView.cpp +++ b/dash/DashView.cpp @@ -1447,6 +1447,7 @@ void DashView::OnEntryActivated() for (auto const& view : scope_views_) view.second->neko_mode = (i != 0); + search_bar_->search_string = ""; return; } } diff --git a/dash/ResultRendererTile.cpp b/dash/ResultRendererTile.cpp index 35a438c9e..ae0fc2246 100644 --- a/dash/ResultRendererTile.cpp +++ b/dash/ResultRendererTile.cpp @@ -282,8 +282,9 @@ void ResultRendererTile::LoadIcon(Result const& row) }; gsize tmp0; int tmp1 = tile_size - (rand() % RawPixel(16).CP(scale)); - glib::String tmp2((gchar*)g_base64_decode(pool[rand() % pool.size()], &tmp0)); - icon_name = glib::String(g_strdup_printf(tmp2, tmp1, tmp1)).Str(); + int tmp2 = tile_size - (rand() % RawPixel(16).CP(scale)); + glib::String tmp3((gchar*)g_base64_decode(pool[rand() % pool.size()], &tmp0)); + icon_name = glib::String(g_strdup_printf(tmp3, tmp1, tmp2)).Str(); } glib::Object<GIcon> icon(g_icon_new_for_string(icon_name.c_str(), nullptr)); |
