Displaying 11 results from an estimated 11 matches for "__wxgtk__".
Did you mean:
d__wxgtk__
2006 Oct 25
6
PrinterDC.i Patch
This patch allows PrinterDC to go merrily by on Linux. I''m not sure
it''s the best solution to the problem so I submit it for your approval.
Roy
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: PrinterDC.i.patch
Url: http://rubyforge.org/pipermail/wxruby-development/attachments/20061024/585c15f2/attachment.pl
2005 Aug 03
24
patch for Icon
...int desiredWidth=-1, int desiredHeight=-1);
that signature is only used on GTK on other systems it is:
wxIcon(const wxString& name,
long type = wxBITMAP_TYPE_ICO_RESOURCE,
int desiredWidth = -1, int desiredHeight = -1);
So I wrapped this in a #ifdef __WXGTK__ #else #endif
I also had to change:
wxLogWarning(wxConvUTF8.cMB2WC(StringValuePtr(str)));
I don''t know about other systems but on Windows wxLogWarning and
wxLogStatus only take const char *formatString and that is what the
docs show also.
Kevin the refactored install works great also....
2007 Jan 06
0
[833] trunk/wxruby2/swig/classes: Fix the inheritance chain of wxIcon (varies cross-platform)
...the following might eventually be helpful for MSWin?
</del><ins>+
+// inheritance pattern is slightly different across platforms
+// GTK: Icon < Bitmap < GDIOBject
+// OS X: Icon < GDIObject
+// Windows: Icon < GDIImage < GDIObject (no public class GDIImage)
+#if defined(__WXGTK__)
+%import "include/wxBitmap.h"
+#endif
+
+// #if defined(__WXMSW__)
</ins><span class="cx"> // %import "include/wxGDIImage.h"
</span><del>-// the following works on GTK but not MS Win
-// %import "include/wxBitmap.h"
</del><in...
2005 Aug 04
2
Next swig problem
...9;' must have
class/struct/union type
src/SpinCtrl.cpp(1147) : error C2371: ''cWxSpinCtrl'' : redefinition;
different basic types
...
The reason for this is the way it trying to use something before
declaring it:
extern "C" void PostInit_wxSpinCtrl(void)
{
#ifndef __WXGTK__
rb_define_method(cWxSpinCtrl.klass, "set_selection",
VALUEFUNC(_wrap_wxSpinCtrl_SetSelection), -1);
#endif
}
extern swig_class cWxControl;
swig_class cWxSpinCtrl;
If I move the PostInit part down below the declaration all works fine
(compilation wise).
2005 Aug 21
2
Latest tarball doesn''t compile
1) SetScrollRange and SetScroll page in wxWindow.h is apparently only
defined for ''microwindows''. No idea what that is but it''s not Windows.
I replaced the #if !__WXGTK__ with #if __WXMICROWIN__
See patched wxWindow.h file.
2) wxIcon does not (on windows at least) descend from wxBitmap. I don''t
have the gtk or mac headers to compare against. I''ve removed the
wxBitmap.h %import and added a commented out %import for wGDIImage.h
(which we don...
2007 Apr 29
0
[985] branches/wxruby2/wxwidgets_282/swig/classes/Window.i: Fix get_handle on GTK
...self;
</span><del>-        long handle;
-
-        // borrowed from wxPython
-#ifdef __WXMSW__
- handle = (long)win->GetHandle();
-#endif
-
-#if defined(__WXGTK__) || defined(__WXX11)
- handle = (long)GetXWindow(win);
-#endif
-
-#ifdef __WXMAC__
- handle = (long)win->GetHandle();
-#endif
-
</del><ins>+ long handle = (long)win->GetHandle();
</ins><span class="cx">      &a...
2007 Apr 13
0
[955] branches/wxruby2/wxwidgets_282/swig/classes/include/wxIcon.h: Change Icon.ok to Icon.is_ok (2.8)
...:19 UTC (rev 955)
</span><span class="lines">@@ -39,7 +39,7 @@
</span><span class="cx">
</span><span class="cx"> // on GTK this method is inherited from Bitmap, not defined here
</span><span class="cx"> #ifndef __WXGTK__
</span><del>-        bool Ok() const;
</del><ins>+        bool IsOk() const;
</ins><span class="cx"> #endif
</span><...
2007 Apr 26
0
[973] branches/wxruby2/wxwidgets_282/swig/classes/Window.i: Fix crasher with Window#get_handle, also comment the paint method
... wxWindow *win = self;
+        long handle;
+
+        // borrowed from wxPython
+#ifdef __WXMSW__
+ handle = (long)win->GetHandle();
+#endif
+
+#if defined(__WXGTK__) || defined(__WXX11)
+ handle = (long)GetXWindow(win);
+#endif
+
+#ifdef __WXMAC__
+ handle = (long)win->GetHandle();
+#endif
+
+        return LONG2NUM(handle);
+ }
</ins><span class="cx"> }
</span&g...
2005 May 03
10
Is wxRuby-SWIG version usable enough to package for download?
If wxRuby-SWIG is as usable as wxRuby 0.6.0, maybe it should be given a
version number and packaged up for download.
Given the nature of SWIG, having a lot more people use it would probably
result in more code contributions to this project.
Seems most of the changes are 2+ months old, so I''m guessing wxRuby-SWIG
is fairly stable right now in terms of frequency of changes...
2006 Sep 17
11
ShapedWindow.rbw
These patches implement wxRegion and the ShapedWindow sample. I stole
the ruby image from ruby-lang.org. Shamelessly. Maybe someone has a
better image we can use for the shaped window. It didn''t seem to make
sense to use the Python image. I''d like something even bigger than what
I stol^h^h^h^hmade, preferably. Image goes in icons.
I had to %ignore one function in wxRegion.
2007 Mar 21
0
[906] branches/wxruby2/wxwidgets_282: Wx::ComboBox API 2.6 -> 2.8, plus some doc corrections
...;> void Cut() ;
</span><ins>+ int GetCurrentSelection() const;
</ins><span class="cx"> long GetInsertionPoint() const;
</span><span class="cx"> long GetLastPosition() const;
</span><ins>+#if defined(__WXMSW__) || defined (__WXGTK__)
+ void GetSelection(long *from, long *to) const;
+#endif
</ins><span class="cx"> wxString GetValue() const;
</span><span class="cx"> void Paste() ;
</span><span class="cx"> void Replace(long from , long to , const wxString&...