Włodzimierz Skiba
9eddec696f
Include wx/settings.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-24 07:16:32 +00:00
Mart Raudsepp
7d1fea10d4
No cast necessary for g_object_set first arg (it takes a gpointer).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-15 16:00:59 +00:00
Włodzimierz Skiba
88a7a4e10e
Include wx/intl.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-25 14:38:19 +00:00
Vadim Zeitlin
aa61d35253
replaced all int/size_t indices in wxControlWithItems API with unsigned int (committing on behalf of ABX)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-23 22:05:23 +00:00
Vadim Zeitlin
c1a3ff259e
fixed Clear() for GTK+ 2.4+
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-20 12:17:03 +00:00
Robin Dunn
1dc9b42f4f
Fix compilation error
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-14 20:28:07 +00:00
Włodzimierz Skiba
8228b8932a
Line-up interfaces to use size_t for GetCount()s (and count related api).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-14 19:44:45 +00:00
Vadim Zeitlin
848332140b
moved wxapp_install_idle_handler and g_isIdle from many cpp files into gtk/private.h (patch 1435529)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-09 13:36:53 +00:00
Robert Roebling
9b0d12e94f
Correcteded wxComboBox::Clear
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37670 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-22 22:37:15 +00:00
Mart Raudsepp
5b008dd712
undef GTK_DISABLE_DEPRECATED for any gtk+ version, as it turns out we use GtkList in here too.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-22 17:15:20 +00:00
Mart Raudsepp
1efb5db896
Make everything compile with GTK_DISABLE_DEPRECATED declared.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-20 21:28:53 +00:00
Robert Roebling
590f50d6cc
Make use of GTK 2.4 GtkComboBox if it is available,
...
fall back to old GtkCombo one if not (run-time check).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-20 17:10:49 +00:00
Robert Roebling
1fb33bdb46
Rename gtk_ callbacls to gtkcombo_ callbacks
...
to make room for gtkcombobox_
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-20 11:35:31 +00:00
Mart Raudsepp
370dc79c5a
GTK2: gtk_widget_set_usize -> gtk_widget_set_size_request
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-03 21:51:21 +00:00
Mart Raudsepp
afa7bd1eef
Remove obsolete GTK1 compatibility macros. Patch #1413458 - Paul Cornett
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-03 20:38:55 +00:00
Mart Raudsepp
9fa72bd2a6
Use g_signal* instead of deprecated gtk_signal*. Use proper casts for the arguments.
...
Worth norting from the GTK+ docs: "For future usage, direct use of the GSignal API is recommended, this avoids
significant performance hits where GtkArg structures have to be converted into GValues."
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-22 23:28:58 +00:00
Mart Raudsepp
68567a967b
Nuke GTK1 from src/gtk
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-22 20:29:17 +00:00
Vadim Zeitlin
3dbfe8f44f
reset g_SelectionBeforePopup sooner in gtk_popup_hide_callback() to ensure that GetSelection() returns the new selection when called from wxEVT_COMMAND_COMBOBOX_SELECTED handler
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-16 02:31:40 +00:00
Mart Raudsepp
90e572f1e5
Spelling fixes from Andreas Mohr (patch #1360064 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-19 01:07:56 +00:00
Kevin Hock
345bdf13c0
For consistency with other ports, send TEXT event after SELECTED event
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-10 19:10:29 +00:00
Włodzimierz Skiba
11e62fe658
wxItemContainerImmutable::FindString unified.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-27 17:05:26 +00:00
Vadim Zeitlin
17a1ebd101
first round of Intel compiler warning fixes: down from a few thousands just to slightly more than 100
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 19:59:19 +00:00
Mart Raudsepp
8907154c1a
Nuke #pragma implementation/interface's
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Vadim Zeitlin
40eb3606eb
added GetCurrentSelection(); made GetSelection() behave as documented (and not as before); don't send TEXT_UPDATED events until the combobox is closed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-17 14:22:41 +00:00
Włodzimierz Skiba
0a164d4c4e
[1231183] 'cleanup: mismatched indentation' and other cleanings.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-22 18:01:46 +00:00
Vadim Zeitlin
865bb3251e
GTK+ callbacks must have C linkage (patch 1157384)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-21 23:42:26 +00:00
Robert Roebling
4e1a9bc7c9
Apply combobox patch II.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-28 14:45:58 +00:00
Robert Roebling
024e9a4cea
Better resizing code fro wxComboBox.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-15 23:19:32 +00:00
Vadim Zeitlin
64fa6f167e
removed multiple duplicate copies (with subtly different behaviour) of SetStringSelection(); left only one of them in wxItemContainer (and another one in wxRadioBoxBase, to be removed)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-13 16:29:31 +00:00
Robert Roebling
58b907f6e1
_conncect_after() should be used for controls emitting
...
command events so as to not confuse GTK+ if the user
intercepts them too early.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-05 12:51:05 +00:00
Włodzimierz Skiba
7d8268a1d6
wxTextPos for all GetLastPosition with constants for special cases. Make it virtual everywhere. Avoid doubling typedefs. Always include textctrl.h for combobox.h. Source cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-19 16:25:34 +00:00
Robert Roebling
44c5573d2e
Compile fixes for GTK 1.2
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-08 15:41:04 +00:00
Robert Roebling
02a6e35839
Applied wxNO_BORDER patch for text control and combo box.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-08 10:35:15 +00:00
Robert Roebling
9d6a9fdd13
Applied patched for combo box SELECTED events (no
...
long get lots of surplus events)
Applied patch for menu hihglight colour detection.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-06 12:49:20 +00:00
Jouk Jansen
41eb6d76b0
Committing in .
...
fix for gtk-1.x
Modified Files:
wxWidgets/src/gtk/combobox.cpp
----------------------------------------------------------------------
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-15 07:42:31 +00:00
Julian Smart
4e324a3fbf
Combobox corrections
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-09 15:27:54 +00:00
Julian Smart
150e31d208
Added further 'missing' wxTextCtrl-like functions to wxComboBox
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-09 15:16:51 +00:00
Robert Roebling
78b3b018ce
Corrected wxComboBox::GetValue() after a
...
selection has changed. Added test for
that to the "widgets" sample.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-08 22:08:28 +00:00
Václav Slavík
260a67b7aa
fixing sizing bug inside wxWizard
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-23 16:10:26 +00:00
Václav Slavík
b0021947ef
added InvalidateBestSize calls when combobox's content changes; DoGetBestSize now accounts for the width returned by GTK+ too
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30081 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-23 16:06:11 +00:00
Julian Smart
ea2d542c01
Worked around font setting problem for GTK+1 on some
...
distributions. This is a workaround for wxGrid only.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-20 16:44:17 +00:00
Robert Roebling
3c4e4af64e
Make wxComboBox spit out a bit fewer surplis
...
events when holding down the mouse button.
Enable key based navigation through notebook
tabs as in the native control with Left and
right keys. Support for vetoing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29668 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-05 21:11:18 +00:00
Ron Lee
631a05be91
GTK Combobox and Listbox aren't realized until actually
...
visible, so a list_item created before that would
receive a default style instead of the control's style.
Instead of calling ApplyWidgetStyle() which would
iterate all items, only the newly created item will
receive the current style to speed things up.
Thanks to Andreas Pflug. Closes 984861
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-05 10:08:19 +00:00
Robin Dunn
9f88452895
* Implemented BestSize cache
...
* Added calls to InvalidateBestSize where things affecting BestSize
are modified. There are probably several other places where this
still needs to be done...
* Added wxWindowBase::GetBestFittingSize that will merge the BestSize
into the MinSize, (if any) and return the result.
* SetBestFittingSize will now only set the MinSize to the value that
was passed to it, without merging in the BestSize
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-24 20:09:45 +00:00
Václav Slavík
f40fdaa339
fixed GTK styles handling:
...
1. don't modify the style unless something changed
2. use gtk_widget_modify_style instead of gtk_widget_set_style, the latter is not recommended by GTK+ developers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-14 17:34:00 +00:00
Julian Smart
655719367a
Use old licence name
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e
Name and version changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Robin Dunn
9d522606d0
Get(Class)DefaultAttributes() for wxGTK controls
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-06 17:26:25 +00:00
Robin Dunn
abdeb9e700
Added wxControl::PostCreation for wxGTK. Moved calls to
...
InheritAttributes and ApplyWidgetStyle there, and added a call to
SetInitialBestSize. Also removed calls to Show from Create since
PostCreation already does it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-04 07:09:32 +00:00
Robin Dunn
95561ddfc3
Change SetStringSelection to return bool like in other classes and ports
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-27 19:59:35 +00:00