Robert Roebling
7ceea08fa3
Reenabled page selection event when page in notebook
...
was deleted.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-04 16:56:07 +00:00
Robert Roebling
9c862cfb93
[ 1577675 ] Fix for GTK warnings in wxNotebook::DoRemovePage
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-15 18:44:33 +00:00
Paul Cornett
d41e1ab481
replace use of deprecated GtkPixmap, gtk_container_border_width
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-15 04:36:31 +00:00
Vadim Zeitlin
fea909e19e
no changes, just replaced C comment with a C++ one
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-09 17:11:10 +00:00
Vadim Zeitlin
a570e8f8fe
added SendPageChanging/ChangedEvent() functions; fixed wxCocoa build broken by wxNotebook::ChangePage() change
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-08 23:41:52 +00:00
Vadim Zeitlin
1d6fcbcc70
added wxBookCtrl::ChangeSelection() which is the same as SetSelection() but doesn't send the page change events (second part of patch 1553551)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-08 17:37:23 +00:00
Julian Smart
3ba6891d6a
Strip menu codes out from notebook page labels
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-08 16:00:43 +00:00
Václav Slavík
22a35096a0
renamed wxRect::Inside() to wxRect::Contains(), wxRect::Inside(wxRect) is too confusing
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-13 17:12:25 +00:00
Paul Cornett
c7b2e4941f
returning true is sufficient to stop signal emission
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-27 00:31:39 +00:00
Paul Cornett
1481968400
use "event" signal emission hook to install idle handler for many events
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-26 22:07:45 +00:00
Vadim Zeitlin
ef5c70f96f
Many changes:
...
- Introduced GTKGetWindow() which returns all GdkWindows associated with the
given wxWindow
- Renamed IsOwnGtkWindow() to GTKIsOwnWindow() to avoid confusion with the old
virtual function (the new one is non-virtual and is implemented in terms of
GTKGetWindow())
- Refactored/simplified event handlers code in gtk/window.cpp
- Fixed some header guards names (__GTKFOO__ -> _WX_GTK_FOO_H_)
- Added GTKUpdateCursor() which sets the current cursor for all windows
returned by GTKGetWindow()
- Factored out code from many different classes in wxControl::OnInternalIdle()
which now updates the cursor, checks for internal focus and sends update UI
events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 12:59:28 +00:00
Włodzimierz Skiba
9804d5404a
wxNB_HITTEST_* flags renamed to wxBK_HITTEST_* to serve all book controls.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40006 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-05 12:21:13 +00:00
Vadim Zeitlin
d0a84b6338
fill in flags parameter of HitTest() for all book controls; added new wxNB_HITTEST_ONPAGE bit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-14 15:54:24 +00:00
Włodzimierz Skiba
0bca037363
Include wx/bitmap.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-14 10:02:19 +00:00
Julian Smart
90f9b8ef0c
Reverted last wxBookCtrl change and added alignment check to notebook
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-06 12:53:31 +00:00
Włodzimierz Skiba
246c5004eb
Include wx/msgdlg.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-25 07:07:23 +00:00
Włodzimierz Skiba
8e609c8259
Include wx/panel.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-04 18:10:27 +00:00
Włodzimierz Skiba
de6185e212
Include wx/utils.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-02 10:39:23 +00:00
Włodzimierz Skiba
e4db172a3b
Include wx/log.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-26 08:21:31 +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
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
Mart Raudsepp
a5bb4f8293
Remove semicolon after if statmce that can potentially cause harm later. Patch #1443820 from Paul Cornett
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-06 02:17:49 +00:00
Mart Raudsepp
a237731e1c
Test the commit announcement bot some more by fixing more gtk signal callback handler signatures. Are any correct?
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-23 11:09:28 +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
Mart Raudsepp
2e14a11616
GTK2: gtk_container_children -> gtk_container_get_children
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-03 23:39:48 +00:00
Mart Raudsepp
38f1df7c9c
GTK2: gtk_notebook_set_page -> gtk_notebook_set_current_page
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-03 23:26:21 +00:00
Mart Raudsepp
a7c12d28e6
GTK2: gtk_label_set -> gtk_label_set_text
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-03 22:58:26 +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
Mart Raudsepp
f660b2062c
Fix HitTest to return the proper tab index in case there are more tabs than fit (and therefore there are scrolling
...
arrows), and the first visible tab isn't the first real tab. Before counting started from the visible tab, not real
tab.
While doing this, I noticed lots of "interesting" bugs wrt tab indexes and the whole wxGtkNotebookPage hack in the
code. In my opinion, to fix some of the bugs I noticed during testing, wxGtkNotebookPage has to be nuked and the
necessary parts rewritten.
Meanwhile, the HitTest fix works with wxNB_TOP styled notebooks that haven't modified tabs in a way that would have
mess up the wxGtkNotebookPage index sync. For other cases it might depend on the phase of the moon, and other factors.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-13 01:20:41 +00:00
Mart Raudsepp
df034cc6d5
Compilation fix...
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-26 00:26:34 +00:00
Vadim Zeitlin
28c91b7deb
removed more extraneous semicolons
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 23:28:04 +00:00
Vadim Zeitlin
bd090f77ee
position is always unsigned in InsetPage(), no need to compare it with 0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 19:08:36 +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
1c36a9d335
use given position for page insertion instead of trying to find the page to insert before (bug 1287730)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-11 11:55:48 +00:00
Mart Raudsepp
88d197753d
Expand tabs, identation/whitespace fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-08 09:50:13 +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
Julian Smart
49bf4e3e68
Added GetBitmap, GetIcon to wxImageList
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-27 10:36:58 +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
Václav Slavík
97357eecf1
gtk notebook page style fixes (patch 984864)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-14 22:08:04 +00:00
Robin Dunn
fff8475e0c
A better workaround for Bug# 901694 that works with GTK+ 1.2, 2.2
...
*and* 2.4.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-06 23:09:17 +00:00
Vadim Zeitlin
acb69c1342
invalidate m_selection in DoRemovePage(), not in DeletePage() (replaces patch 998984)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-30 23:38:36 +00:00
Vadim Zeitlin
7fc4caa60a
compilation warning fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-25 17:25:04 +00:00
Vadim Zeitlin
f2f38edc2c
invalidate selection when deleting the page changes its index (replaces patch 865500)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-25 17:12:28 +00:00
Robin Dunn
37144cf0f1
Invalidate notebook best size when pages are added or removed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-03 15:49:29 +00:00
Václav Slavík
04ff27d504
don't mess with the fonts if not asked to
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-27 22:17:14 +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