Commit Graph

17800 Commits

Author SHA1 Message Date
Stefan Csomor
e7ead9d700 guard against early redraws
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-06 16:58:19 +00:00
David Surovell
63c6e6c806 added protection against non-file drop targets receiving files (and subsequently crashing)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-06 16:24:26 +00:00
Jamie Gadd
26c2a266cd Add check for wxGLCanvas to wxCheckWindowWndProc. Fixes bug #1425106.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-06 13:44:06 +00:00
David Surovell
93a2619d10 cleanup - reformatting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-06 05:08:13 +00:00
Vadim Zeitlin
259858fc6a now we don't only show label mnemonics but they also work
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 23:50:13 +00:00
Vadim Zeitlin
12848fda6f no changes; just some (very) minor cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 23:39:37 +00:00
Vadim Zeitlin
3fe5be6e01 use XmNrecomputeSize instead of manually resizing the label (and unmanaging/managing it in process resulting in flicker) (patch 1420899)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 23:20:26 +00:00
Vadim Zeitlin
2ce89389bf use GTKRemoveMnemonics instead of wxStripMenuCodes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 23:02:47 +00:00
Vadim Zeitlin
ee6dd41a50 removed GTKConvertMnemonics() which is not used in GTK1 (which doesn't support mnemonics)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 22:58:41 +00:00
Vadim Zeitlin
d44a933726 honour the mnemonics; don't use gtk_label_set_markup() for foreground colour as this doesn't seem to be necessary
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 22:41:39 +00:00
Robin Dunn
1dabdced0e For consistency with the docs and with wxMSW the keycode for
Ctrl-letter EVT_CHAR events should be in the range 1-26.  Also, make
the m_uniChar value match the keycode for KEY_UP/DOWN events for
letters.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 22:10:13 +00:00
David Surovell
68204d23c2 cleanup - reformatting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 22:00:44 +00:00
Włodzimierz Skiba
63ae3663c5 Missing break after error in daily build.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 20:58:21 +00:00
David Surovell
71786e29fa added ctor implementation from header + initialzation; more reformatting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 20:52:30 +00:00
Roger Gammans
1d7bc9130c fix for [1357272] . Replace the fake year with unique tokens to prevent
substring matches.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 14:10:51 +00:00
Vadim Zeitlin
b7c542d5c6 renamed AddSubPage() with pos parameter to InsertSubPage()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37321 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 13:00:43 +00:00
Vadim Zeitlin
9d5371c60b renamed AddSubPage() with pos parameter to InsertSubPage()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37316 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 12:27:20 +00:00
Jamie Gadd
68df211fae Deprecate wxDC::{Begin,End}Drawing()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 11:59:59 +00:00
David Surovell
6037dd262f correct include file conditionalization, take 2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 09:14:02 +00:00
David Surovell
b46dde2772 cleanup - reformatting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 07:27:48 +00:00
David Surovell
61fa2e39da cleanup - reformatting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 07:15:26 +00:00
Mart Raudsepp
8e729eb44b GTK2: Revert one set_resizable back to set_policy for now, as we need allow_shring to be TRUE right now, due to doing
bad things(tm) to the size requests of child widgets inside the toplevel.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 00:23:32 +00:00
David Surovell
28bfd0a1d2 added appropriate WX_PRECOMP bracket for new include statement
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-04 18:49:39 +00:00
Stefan Csomor
a4e3cdf025 support for default location added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-04 16:23:46 +00:00
Stefan Csomor
e3aeade0d6 linking commands on the individual window level, otherwise built-in handlers override our own (eg Paste is handled internally in a textcontrol without going through our own, resulting in changing 'read-only' unicode textcontrol)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-04 15:38:01 +00:00
Stefan Csomor
35d9ac0686 deactivate read-only implementation for unicodetextcontrol because it cannot be selected otherwise
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-04 15:35:06 +00:00
Mart Raudsepp
1d13cff399 I'm no fan of that focus ring being drawn inside the wxMiniFrame close button after a click (and release not on the
button), making the button look weird. So... don't focus on click.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-04 13:06:06 +00:00
Mart Raudsepp
07d04e37fd Optimize (for size) the cross_xpm used for the X button in wxMiniFrame. We use only 2 colors, so don't declare 16 of
them. Also swap the characters used to make the X visible in source code.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-04 12:39:23 +00:00
Mart Raudsepp
9adb906369 GTK2: gtk_widget_set_uposition -> gtk_window_move for wxMiniFrame. No, I don't like emulated window moves, so I can't
use my wm to move this minifram, but alas for now.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-04 12:31:10 +00:00
Mart Raudsepp
cd6645a2c4 GTK2: gtk_widget_set_uposition -> gtk_window_move for wxPopupWindow - migration appears to work fine for it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-04 12:15:31 +00:00
David Surovell
c2794afdbb added missing include; minor reformatting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-04 04:58:30 +00:00
Mart Raudsepp
0857d1d659 GTK2: Add a GTK_WIDGET_DRAWABLE check to the gtk_widget_draw replacement to make it call identical worker functions
as before, and not spew warnings


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-04 02:10:53 +00:00
Mart Raudsepp
f91f71e384 GTK2: gtk_widget_{push,pop}_visual don't do anything in GTK2, other than break compilation with
GTK_DISABLE_DEPRECATED


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-04 01:49:25 +00:00
Mart Raudsepp
18e989043b gtk_signal_connect -> g_signal_connect in unix/mediactrl.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37297 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-04 01:47:01 +00:00
Mart Raudsepp
6f85e71200 GTK2: gtk_entry_* -> gtk_editable_* where necessary
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-04 00:50:47 +00:00
Mart Raudsepp
78e017d8f3 GTK2: gtk_radio_button_group -> _set_group; A missed gtk_label_set to set_text. Add a FIXME note for wxStaticText
probably not honoring SetBackgroundColour


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-04 00:09:16 +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
8394218c13 GTK2: gtk_check_menu_item_set_state -> _set_active; gtk_label_{parse_uline,set_text} and co ->
gtk_label_set_text_with_mnenomics


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-03 23:38:01 +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
1856b88fc3 GTK2: gtk_progress_bar_update -> gtk_progress_bar_set_fraction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-03 23:22:40 +00:00
Mart Raudsepp
34c1f23146 GTK2: gtk_widget_draw -> gtk_widget_queue_draw + gdk_window_process_updates. Do we really want to force an immediate
redraw here?


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-03 23:14:34 +00:00
Mart Raudsepp
1ab9e06d6a GTK: gtk_menu_{insert,append} -> gtk_menu_shell_{insert,append}
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-03 23:07:20 +00:00
Robin Dunn
a16c6fdcbd Don't assume that msw.remap was 1, instead change it back to what it
really was before.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-03 23:05:15 +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
e343da37ac GTK2: gtk_toggle_button_set_state -> gtk_toggle_button_set_active
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-03 22:53:37 +00:00
Mart Raudsepp
92ed8becfc GTK2: gtk_timeout_add -> g_timeout_add; gtk_timeout_remove -> g_source_remove.
Fix gtk_frame_urgency_timer_callback return type (gint -> gboolean).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-03 22:22:27 +00:00
Mart Raudsepp
43a52404ac GTK2: gtk_window_set_policy -> gtk_window_set_resizable. Slight change for resizable toplevel behaviour -
allow_shrink is now always FALSE - it being TRUE is told to be 99% of the times a bad idea, too. I think we aren't
the 1% case here


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-03 22:08:01 +00:00
Mart Raudsepp
67b73b9aab GTK2: gtk_draw_* -> gtk_paint_*
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-03 21:57:03 +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
5d038ec59c GTK2: gtk_idle_add_priority -> g_idle_add_full; gtk_idle_remove -> g_source_remove
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-03 21:44:31 +00:00