Committing in .
VMS/GTK compile support Modified Files: wxWindows/descrip.mms wxWindows/setup.h_vms wxWindows/samples/minimal/descrip.mms wxWindows/src/common/descrip.mms wxWindows/src/common/resource.cpp wxWindows/src/generic/descrip.mms wxWindows/src/gtk/dcclient.cpp wxWindows/src/gtk/filedlg.cpp wxWindows/src/gtk/fontdlg.cpp wxWindows/src/gtk/listbox.cpp wxWindows/src/gtk/tbargtk.cpp wxWindows/src/gtk/win_gtk.c wxWindows/src/unix/descrip.mms wxWindows/src/unix/fontenum.cpp Added Files: wxWindows/lib/vms_gtk.opt wxWindows/src/gtk/wx_gtk_vmsjackets.c ---------------------------------------------------------------------- git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1452,13 +1452,14 @@ void wxWindowDC::SetPen( const wxPen &pen )
|
||||
{
|
||||
for (int i = 0; i < req_nb_dash; i++)
|
||||
real_req_dash[i] = req_dash[i] * width;
|
||||
gdk_gc_set_dashes( m_penGC, 0, real_req_dash, req_nb_dash );
|
||||
gdk_gc_set_dashes( m_penGC, 0, (gint8*) real_req_dash,
|
||||
req_nb_dash );
|
||||
delete[] real_req_dash;
|
||||
}
|
||||
else
|
||||
{
|
||||
// No Memory. We use non-scaled dash pattern...
|
||||
gdk_gc_set_dashes( m_penGC, 0, (char*)req_dash, req_nb_dash );
|
||||
gdk_gc_set_dashes( m_penGC, 0, (gint8*)req_dash, req_nb_dash );
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
@@ -16,6 +16,10 @@
|
||||
#include "wx/intl.h"
|
||||
#include "wx/generic/msgdlgg.h"
|
||||
|
||||
|
||||
#ifdef __VMS__
|
||||
#define gtk_file_selection_hide_fileop_buttons gtk_file_selection_hide_fileop_
|
||||
#endif
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@@ -17,6 +17,11 @@
|
||||
#include "wx/debug.h"
|
||||
#include "wx/msgdlg.h"
|
||||
|
||||
#ifdef __VMS__
|
||||
#define gtk_font_selection_dialog_get_type gtk_font_selection_dialog_get_t
|
||||
#define gtk_font_selection_dialog_get_font gtk_font_selection_dialog_get_f
|
||||
#define gtk_font_selection_dialog_get_font_name gtk_font_selection_dialog_getnf
|
||||
#endif
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@@ -26,7 +26,12 @@
|
||||
#include "wx/tooltip.h"
|
||||
#endif
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
#ifdef __VMS__
|
||||
#define gtk_scrolled_window_add_with_viewport gtk_scrolled_window_add_with_vi
|
||||
#define gtk_container_set_focus_vadjustment gtk_container_set_focus_vadjust
|
||||
#define gtk_scrolled_window_get_vadjustment gtk_scrolled_window_get_vadjust
|
||||
#endif
|
||||
# include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include <gdk/gdkkeysyms.h>
|
||||
|
||||
|
@@ -26,6 +26,9 @@
|
||||
|
||||
#include "wx/frame.h"
|
||||
|
||||
#ifdef __VMS__
|
||||
#define gtk_pixmap_set_build_insensitive gtk_pixmap_set_build_insensitiv
|
||||
#endif
|
||||
#include "glib.h"
|
||||
#include "gdk/gdk.h"
|
||||
#include "gtk/gtk.h"
|
||||
|
@@ -10,6 +10,10 @@
|
||||
/////////////////////////////////////////////////////////////////////////// */
|
||||
|
||||
#include "wx/gtk/win_gtk.h"
|
||||
#ifdef __VMS
|
||||
#define gtk_widget_get_child_requisition gtk_widget_get_child_requisitio
|
||||
#define gtk_marshal_NONE__POINTER_POINTER gtk_marshal_NONE__POINTER_POINT
|
||||
#endif
|
||||
#include "gtk/gtksignal.h"
|
||||
#include "gtk/gtkprivate.h"
|
||||
#include "gdk/gdkx.h"
|
||||
|
40
src/gtk1/wx_gtk_vmsjackets.c
Normal file
40
src/gtk1/wx_gtk_vmsjackets.c
Normal file
@@ -0,0 +1,40 @@
|
||||
#include <gdk/gdk.h>
|
||||
|
||||
void GDK_BEEP (void)
|
||||
{
|
||||
gdk_beep();
|
||||
}
|
||||
|
||||
GdkBitmap* GDK_BITMAP_CREATE_FROM_DATA (GdkWindow *window,
|
||||
const gchar *data,
|
||||
gint width,
|
||||
gint height)
|
||||
{
|
||||
return gdk_bitmap_create_from_data (window,
|
||||
data,
|
||||
width,
|
||||
height);
|
||||
}
|
||||
|
||||
void GDK_BITMAP_UNREF (GdkBitmap *pixmap)
|
||||
{
|
||||
gdk_bitmap_unref (pixmap);
|
||||
}
|
||||
|
||||
gint GDK_CHAR_HEIGHT (GdkFont *font,
|
||||
gchar character)
|
||||
{
|
||||
return gdk_char_height (font,
|
||||
character);
|
||||
}
|
||||
|
||||
GdkColormap* GDK_COLORMAP_GET_SYSTEM (void)
|
||||
{
|
||||
return gdk_colormap_get_system();
|
||||
}
|
||||
|
||||
GdkVisual* GDK_COLORMAP_GET_VISUAL (GdkColormap *colormap)
|
||||
{
|
||||
return gdk_colormap_get_visual (colormap);
|
||||
}
|
||||
|
Reference in New Issue
Block a user