#include "wx/intl.h"
#endif
+#include <gtk/gtk.h>
#include "wx/gtk/private.h"
#include "wx/gtk/private/messagetype.h"
#include "wx/gtk/private/mnemonics.h"
-#include <gtk/gtk.h>
#if wxUSE_LIBHILDON
#include <hildon-widgets/hildon-note.h>
}
wxString message;
-#if GTK_CHECK_VERSION(2, 6, 0)
bool needsExtMessage = false;
- if ( gtk_check_version(2, 6, 0) == NULL && !m_extendedMessage.empty() )
+ if (!m_extendedMessage.empty())
{
message = m_message;
needsExtMessage = true;
}
- else // extended message not needed or not supported
-#endif // GTK+ 2.6+
+ else // extended message not needed
{
message = GetFullMessage();
}
"%s",
(const char*)wxGTK_CONV(message));
-#if GTK_CHECK_VERSION(2, 6, 0)
if ( needsExtMessage )
{
gtk_message_dialog_format_secondary_text
(const char *)wxGTK_CONV(m_extendedMessage)
);
}
-#endif // GTK+ 2.6+
#endif // wxUSE_LIBHILDON || wxUSE_LIBHILDON2/!wxUSE_LIBHILDON && !wxUSE_LIBHILDON2
g_object_ref(m_widget);
gtk_window_present( GTK_WINDOW(m_parent->m_widget) );
gint result = gtk_dialog_run(GTK_DIALOG(m_widget));
+ GTKDisconnect(m_widget);
gtk_widget_destroy(m_widget);
g_object_unref(m_widget);
m_widget = NULL;