[問題] gtk ui更新問題

看板LinuxDev作者 (子凌(b))時間15年前 (2009/02/18 09:39), 編輯推噓2(200)
留言2則, 2人參與, 最新討論串1/1
我有一個 gtk window 裡面有個 button button click 的 handle 如下: void on_button1_clicked (GtkButton *button, gpointer user_data) { gtk_window_fullscreen(window); gtk_window_unfullscreen(window); } 如果 fullscreen / unfullscreen 只做一件的話 就會正常 但如果兩件都做的話,則會沒有回應 我希望看到視窗快速的閃動 應如何處理呢? -- my blog: http://kenshinnn.blogspot.com operation system : Ubuntu GNU/linux window manager : Gnome -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.194.149.175

02/19 19:48, , 1F
把unfullscreen放到一個timer裡試試??
02/19 19:48, 1F

02/19 21:37, , 2F
這可能要了解一下,GTK是如何重繪的 ^_^
02/19 21:37, 2F
文章代碼(AID): #19csQ_1K (LinuxDev)