~UIRequest () {
if (type == ErrorMessage && msg) {
/* msg was strdup()'ed */
- free ((char *)msg);
+ free (const_cast<char *>(msg));
}
}
};
bool caller_is_ui_thread ();
- static Glib::Thread* thread_id() { return gui_thread; }
-
/* Gtk-UI specific interfaces */
bool running ();
static bool just_hide_it (GdkEventAny *, Gtk::Window *);
- static Glib::Thread* the_gui_thread() { return gui_thread; }
-
protected:
virtual void handle_fatal (const char *);
virtual void display_message (const char *prefix, gint prefix_len,
private:
static UI *theGtkUI;
- static Glib::Thread* gui_thread;
+
bool _active;
Gtk::Main *theMain;
#ifndef GTK_NEW_TOOLTIP_API