From: buliabyak Date: Tue, 21 Aug 2007 00:01:21 +0000 (+0000) Subject: make zoom value update immediate X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0c5c6da5a39fe2f556fa6f39c59f8bb8fae6e533;p=inkscape.git make zoom value update immediate --- diff --git a/src/widgets/desktop-widget.cpp b/src/widgets/desktop-widget.cpp index 19cc7bd05..4b744e3df 100644 --- a/src/widgets/desktop-widget.cpp +++ b/src/widgets/desktop-widget.cpp @@ -1288,6 +1288,9 @@ sp_desktop_widget_update_zoom (SPDesktopWidget *dtw) { g_signal_handlers_block_by_func (G_OBJECT (dtw->zoom_status), (gpointer)G_CALLBACK (sp_dtw_zoom_value_changed), dtw); gtk_spin_button_set_value (GTK_SPIN_BUTTON (dtw->zoom_status), log(dtw->desktop->current_zoom()) / log(2)); + gtk_widget_queue_draw(GTK_WIDGET(dtw->zoom_status)); + if (GTK_WIDGET(dtw->zoom_status)->window) + gdk_window_process_updates(GTK_WIDGET(dtw->zoom_status)->window, TRUE); g_signal_handlers_unblock_by_func (G_OBJECT (dtw->zoom_status), (gpointer)G_CALLBACK (sp_dtw_zoom_value_changed), dtw); }