wxWidgets/include/wx/gtk1
Julian Smart b318dc4237 Applied patch [ 579219 ] wxNotebook:SetPadding added
This allows changing the padding of the icons and text
in the tab of a wxNotebook for wxGTK.

Since the container in the tab is only a horizontal
container only the width component is used. Negative
values are acceptable so no checks were made.

It now defaults to a padding of 0 on the sides and 1 in
between the icon and label, looks good for a few
"themes" I tried.

Note: Unfortunately there is no function to set the
padding on the left or right side of a widget.
gtk_box_set_child_packing sets padding on BOTH sides of
a widget so you'd get double the spacing between an
icon and the label. To get around this, the icon (if
there was one) is removed and added back. That way the
icon will provide the padding on the left and the label
will provide the padding between and to the right. It
looks nice for all sizes. The
gtk_container_set_border_width unforuntately only adds
borders to ALL sides equally.

A simple check is to add m_notebook->SetPadding in one
in the spinctrl callback in the controls sample. (set
appropriate range too -10,20). Note that the tab sizes
change to fit the width of the panel, if appropriate,
and so the spacing between the icon and label changes
accordingly. This isn't a bug, but it does look weird
as you scan up and down the spacing (which nobody would
normally do).

I also changed all wxGtkNotebookPage variables to
nb_page so that "int page" would be used to mean the
page number. Just cosmetic for consistency with the
rest of the functions that were already like that.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-08 10:11:32 +00:00
..
.cvsignore Added some WINE things. 1999-06-07 21:17:21 +00:00
accel.h first pass of wxUniv merge - nothing works, most parts don't even compile 2001-06-26 20:59:19 +00:00
app.h Applied patch [ 588734 ] Makes ProcessIdle() virtual 2002-08-01 19:54:55 +00:00
bitmap.h added wxBitmap::CopyFromIcon to wxGTK 2001-09-23 22:36:17 +00:00
bmpbuttn.h initialize wxBitmapButton members 2002-05-04 11:57:39 +00:00
brush.h corrected warnings when compiling with -Wall -W 2002-05-07 21:58:27 +00:00
button.h added default parameter values to the overloaded Show() and Enable() versions 2002-06-04 18:09:20 +00:00
checkbox.h added default parameter values to the overloaded Show() and Enable() versions 2002-06-04 18:09:20 +00:00
checklst.h first pass of wxUniv merge - nothing works, most parts don't even compile 2001-06-26 20:59:19 +00:00
choice.h Headers moved a bit. 1999-11-22 19:44:25 +00:00
clipbrd.h wxClipboard::IsOpened() and wxCLipboardLocker helper class added 1999-10-21 13:56:34 +00:00
colour.h Lots of Unix/Unicode compile fixes, some of which 2002-08-05 18:04:08 +00:00
combobox.h Lots of Unix/Unicode compile fixes, some of which 2002-08-05 18:04:08 +00:00
control.h first pass of wxUniv merge - nothing works, most parts don't even compile 2001-06-26 20:59:19 +00:00
cursor.h Applied wxImage -> wxCursor patch, tool window event table fix 2002-01-31 22:11:06 +00:00
dataform.h some fixes from the SGI build log 2000-01-24 15:47:21 +00:00
dataobj2.h many warnings fixed (from HP-UX compilation log) 1999-11-02 18:41:23 +00:00
dataobj.h corrections for wxGtk compilation under Darwin/Mac OS X 2001-07-21 05:32:09 +00:00
dc.h fix for wxUniv/GTK scrolling 2002-02-10 16:09:49 +00:00
dcclient.h Added wxDF_HTML 2002-04-17 11:48:11 +00:00
dcmemory.h black now denotes 0 on mono-bitmaps. 2000-01-15 10:39:27 +00:00
dcscreen.h wxDC::GetSize() should work now in wxGTK 2000-10-30 16:43:37 +00:00
dialog.h wxTopLevelWindow (only for wxGTK for now) 2001-09-15 22:13:08 +00:00
dnd.h changed DoDragDrop(bool) into DoDragDrop(int) and added support for wxDrag_DefaultMove flag 2002-04-28 14:30:54 +00:00
filedlg.h Headers moved a bit. 1999-11-22 19:44:25 +00:00
font.h better native font support for wxGTK 2002-01-18 20:01:49 +00:00
fontdlg.h fixed wxFontDialog API: accept const ref instead of (well, in addition to) a possibly NULL pointer 2002-05-12 19:35:33 +00:00
frame.h we no longer need wxFrameNative 2001-10-19 20:35:05 +00:00
gauge.h Lots of Unix/Unicode compile fixes, some of which 2002-08-05 18:04:08 +00:00
gdiobj.h Lotta stuff for drawing etc. 2000-03-04 16:23:26 +00:00
glcanvas.h applied patch to make wxGLCanvas derive from wxWindow, not wxScrolledWindow (Paul A. Thiessen) 2001-11-02 16:08:52 +00:00
icon.h made operator==() and \!=() const (still doesn't make them correct probably) 2002-04-20 11:20:49 +00:00
joystick.h Added GTK/Linux joystick class (Guilhem Lavaux) 1998-06-13 10:11:58 +00:00
listbox.h replaced wxWindowGTK::m_isListBox with a virtual function 2002-05-31 14:00:01 +00:00
mdi.h Overrode wxMDIChildFrame's DoSetSize to not misplace 2002-06-02 14:24:29 +00:00
menu.h 1. implemented radio menu items for wxGTK 2002-03-18 19:41:35 +00:00
menuitem.h fixed the menu bug introduced by the previous commit 2002-03-25 14:31:43 +00:00
minifram.h Added zillions of #if wxUSE_XXX 1999-06-14 23:04:05 +00:00
notebook.h Applied patch [ 579219 ] wxNotebook:SetPadding added 2002-08-08 10:11:32 +00:00
pen.h corrected warnings when compiling with -Wall -W 2002-05-07 21:58:27 +00:00
popupwin.h Dislaying popup tip windows seems to work right now. 2002-06-06 19:35:51 +00:00
private.h Added various MACROS for converting strings 2002-08-05 17:57:53 +00:00
radiobox.h added default parameter values to the overloaded Show() and Enable() versions 2002-06-04 18:09:20 +00:00
radiobut.h added default parameter values to the overloaded Show() and Enable() versions 2002-06-04 18:09:20 +00:00
region.h corrected warnings when compiling with -Wall -W 2002-05-07 21:58:27 +00:00
scrolbar.h first pass of wxUniv merge - nothing works, most parts don't even compile 2001-06-26 20:59:19 +00:00
scrolwin.h added ViewStart() as synonym for GetViewStart() in WXWIN_COMPATIBILITY_2_2 mode 2002-06-18 12:47:40 +00:00
slider.h No events when setting values. 2002-07-09 21:01:38 +00:00
spinbutt.h first pass of wxUniv merge - nothing works, most parts don't even compile 2001-06-26 20:59:19 +00:00
spinctrl.h Lots of Unix/Unicode compile fixes, some of which 2002-08-05 18:04:08 +00:00
statbmp.h first pass of wxUniv merge - nothing works, most parts don't even compile 2001-06-26 20:59:19 +00:00
statbox.h replaced wxWindowGTK::m_isStaticBox with a virtual function and replaced 3 occurences of the code finding the window for the mouse events with one 2002-05-31 14:13:17 +00:00
statline.h Added wxExtDialog and sample. 1999-07-03 16:40:54 +00:00
stattext.h first pass of wxUniv merge - nothing works, most parts don't even compile 2001-06-26 20:59:19 +00:00
tbargtk.h implemented (but it doesn't work yet) the radio buttons and text in the buttons for the GTK toolbars 2002-03-25 21:38:18 +00:00
textctrl.h added default parameter values to the overloaded Show() and Enable() versions 2002-06-04 18:09:20 +00:00
tglbtn.h More changes to various controls for more reliably 2001-11-17 23:50:58 +00:00
timer.h 1. wxTimer change - now generates EVT_TIMER() 2000-02-05 01:57:38 +00:00
tooltip.h Added RTTI macros to wxToolTip 2001-07-14 03:23:30 +00:00
toplevel.h Added AddGrab, RemoveGrab, IsGrabbed to wxTopLevelWindowGTK 2002-06-18 21:46:42 +00:00
treectrl.h wxTreeEvent is declared in one header, not 3 of them 1999-07-24 00:14:54 +00:00
wave.h Added --with-wave/--without-wave for conditional wxWave support. 1999-06-09 14:49:50 +00:00
win_gtk.h missing extern "C" added to fix linking problems with some GTK+ versions 2001-10-02 19:28:23 +00:00
window.h removed unused wxWindowGTK::m_isFrame 2002-05-31 14:18:34 +00:00