0
例如,如何從gtk-notify-signal處理函數獲取之前的值?
g_signal_connect(G_OBJECT(window), "notify::title", G_CALLBACK(onTitleChanged), NULL);
void onTitleChanged(GtkWidget* widget,
GParamSpec* property,
gpointer data)
{
g_message("%s is changed, the new value is %s\n", property->name, gtk_window_get_title(GTK_WINDOW(widget)));
}
我怎麼能得到以前(舊)稱號通知信號處理器(onTitleChanged)內在價值?
謝謝。