From 64dcddefd7273dfb7c9d66609be50d900f0159d2 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 2 Jun 2009 19:16:59 +0200 Subject: [PATCH] Refresh speed dial tabs when adding a new shortcut --- midori/midori-browser.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index a98da174..217dd1d1 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -968,6 +968,8 @@ midori_browser_add_speed_dial (MidoriBrowser* browser) if (g_file_get_contents (body_fname, &speed_dial_body, NULL, NULL)) { + gint i; + gdk_pixbuf_save_to_buffer (img, &file_content, &sz, "png", NULL, NULL); encoded = g_base64_encode ((guchar *)file_content, sz); @@ -984,6 +986,12 @@ midori_browser_add_speed_dial (MidoriBrowser* browser) g_file_set_contents (body_fname, replace, -1, NULL); + i = 0; + while ((view = gtk_notebook_get_nth_page (GTK_NOTEBOOK ( + browser->notebook), i++))) + if (midori_view_is_blank (MIDORI_VIEW (view))) + midori_view_reload (MIDORI_VIEW (view), FALSE); + g_object_unref (img); g_regex_unref (regex); g_free (encoded); -- 2.39.5