From 0c5c6da5a39fe2f556fa6f39c59f8bb8fae6e533 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Tue, 21 Aug 2007 00:01:21 +0000 Subject: [PATCH] make zoom value update immediate --- src/widgets/desktop-widget.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); } -- 2.30.2