Benjamin Otte
5642703b0e
notebook: Match horizontal and vertical code paths
...
I have no idea what this code does, but it looks better now. :o
2011-04-29 11:05:37 +02:00
Benjamin Otte
8e1714d59b
notebook: Respect left border when allocating tab widgets
...
This mirrors the code for the other tab locations.
2011-04-29 11:05:36 +02:00
Benjamin Otte
409143637f
notebook: Respect padding when computing tabs for left/right
...
This mirrors the top/bottom code
2011-04-29 11:05:36 +02:00
Benjamin Otte
9a4aec1446
Don't adjust for values that we have previously adjusted for
...
The padding had been taken into account by the computation of
priv->allocation, so don't compute it twice.
2011-04-29 11:05:36 +02:00
Benjamin Otte
02b14ffad9
notebook: Use the right padding for inactive tabs
2011-04-29 08:48:36 +02:00
Benjamin Otte
7a322193e8
notebook: Warn if builder file defines multiple tab widgets per page
...
Glade causes such files when a notebook page has no content. And it's
especially bad because the last tab widget wins, so the label displayed
in Glade will not be what you see when you run the app.
2011-04-28 00:54:34 +02:00
Paolo Borelli
c4e17bb148
Do not leak list when drawing notebook.
...
When we construct the list in the other order we must free it.
https://bugzilla.gnome.org/show_bug.cgi?id=646886
2011-04-08 20:21:22 -04:00
Benjamin Otte
ea928e4212
notebook: Only reset style on tab labels when it actually changes
2011-03-27 00:48:25 +01:00
Cosimo Cecchi
6e1aa0e0a9
notebook: don't forget to reset the style after setting show-tabs
...
This fixes a regression after commit
b04f4c536a
2011-03-17 17:27:37 -04:00
Bastien Nocera
90a4f8dc4b
notebook: Don't set notebook style with hidden tabs
...
When tabs are not shown, and the notebook is used as a container,
we should not set the notebook style, otherwise the theme has no
way to know whether tabs are shown or not, and which colour to draw
the background.
https://bugzilla.gnome.org/show_bug.cgi?id=640692
2011-03-17 18:30:40 +00:00
Cosimo Cecchi
c9f38ba518
notebook: make GtkNotebook respect the focus-padding style property
...
https://bugzilla.gnome.org/show_bug.cgi?id=644348
2011-03-14 11:59:27 -04:00
Cosimo Cecchi
5215f72bd7
notebook: add an 'initial-gap' style property
...
It adds a gap before the first tab in the notebook.
https://bugzilla.gnome.org/show_bug.cgi?id=643841
2011-03-09 14:15:43 -05:00
Cosimo Cecchi
a3b3c91001
notebook: flip the render order
...
The render order for tabs is now
- left to right until the active tab
- right to left until the active tab
- active tab
This allows themes that use non-straight lines for the tab curvature to
draw them not worrying about flipping one side after the active tab.
2011-03-07 00:49:14 -05:00
Cosimo Cecchi
a54ca77fb7
notebook: fixup the last commit
...
Let the tab overlap eat the padding, otherwise having tab-overlap >
tab-curvature without cutting the label is impossible.
This way we give the label widget all the allocation possible before
giving up and cutting it if the values for tab-overlap are too extreme
for the given padding.
2011-03-06 22:08:26 -05:00
Cosimo Cecchi
da814ae767
notebook: make sure the label widget allocation not exceeds the overlap
2011-03-06 18:45:20 -05:00
Cosimo Cecchi
27a0cef60c
notebook: make sure the allocation keeps track of the tab curvature
...
This was a genuine typo, because "padding" was calculated but unused in
this branch of the code.
2011-03-06 14:48:09 -05:00
Matthias Clasen
2ccc6c0d60
GtkNotebooks: fix regressions from tab-pack removal
2011-03-03 18:30:03 -05:00
Matthias Clasen
a71e801943
GtkNotebook: Don't let tab allocation go negative
2011-03-03 18:30:03 -05:00
Matthias Clasen
d9fcc4c630
Silence new gcc warnings
...
gcc 4.6.0 has started to warn about set-but-unused variables.
So don't do that, then.
2011-01-23 21:51:38 -05:00
Carlos Garnacho
13a3954ad4
GtkNotebook: only set/unset active flag on the tab label
2011-01-23 19:35:21 +01:00
Pavel Holejsovsky
2f0d40335b
[GI] Add missing (transfer) annotations
2011-01-20 13:57:18 +01:00
Tristan Van Berkom
ac61edb9fc
Avoid calling gtk_widget_is_visible(NULL) in _gtk_notebook_get_tab_flags().
...
The tab can be NULL here when GtkNotebook:show-tabs is FALSE.
2011-01-15 21:34:49 +09:00
Matthias Clasen
98440ad031
Remove gtktypeutils altogether
...
Based on patches by Javier Jardón.
https://bugzilla.gnome.org/show_bug.cgi?id=629955
2011-01-04 14:51:19 -05:00
Matthias Clasen
b5c6904c2f
Drop explicit includes of gdkkeysyms.h
...
These are no longer needed. At the same time, port gtkimcontextsimpleseqs.h
to use the new GDK_KEY_ symbols.
2011-01-04 12:21:41 -05:00
Matthias Clasen
7352a166b6
Formatting fixes and whitespace cleanups
2011-01-04 02:21:38 -05:00
Matthias Clasen
32bfc980c1
Remove pack property altogether
2011-01-04 02:06:03 -05:00
Matthias Clasen
723fedef8b
Remove pack consideration from tab drawing
2011-01-04 02:03:03 -05:00
Matthias Clasen
4ea886aea1
Don't consider pack when allocating tabs
2011-01-04 01:57:22 -05:00
Matthias Clasen
f9d6bc6cca
Drop pack consideration from gtk_notebook_search_page
2011-01-04 01:39:18 -05:00
Matthias Clasen
a7bb193377
Drop internal function to find page position
2011-01-04 01:36:09 -05:00
Matthias Clasen
f838ecf9f0
Remove pack consideration from tab dnd
2011-01-04 01:35:52 -05:00
Matthias Clasen
88501d527d
Remove pack consideration from tab reordering
2011-01-04 01:23:05 -05:00
Matthias Clasen
03b37a2e54
Remove pack arguments from some internal functions
...
This removes pack from gtk_notebook_{set,query}_tab_label_packing.
2011-01-04 01:11:28 -05:00
Matthias Clasen
08a99e9ab3
Remove the deprecated GtkNotebook:tab-pack child property
2011-01-04 00:57:34 -05:00
Matthias Clasen
c874bba0e1
GtkNotebook: fix reference to no-longer-exiting function in docs
2011-01-03 22:55:38 -05:00
Carlos Garnacho
7e2dea1dff
GtkNotebook: remove unneeded call
2011-01-04 03:06:25 +01:00
Benjamin Otte
0c285341a9
API: gdk: gdk_display_get_device_state() => gdk_device_get_position()
...
The API was not display-specific, but belonged to the device. Also, we
didn't find a user of the modifier mask, so we dropped it.
2010-12-27 18:46:41 +01:00
Benjamin Otte
a5f493bfad
notebook: Use nondeprecated API to query coordinates
2010-12-27 00:50:30 +01:00
Matthias Clasen
9baf24f87e
Add a default handler for drag_failed
...
And use it in notebook dnd.
2010-12-22 18:46:29 -05:00
Javier Jardón
e9a77a1535
docs: gtknotebook.c: Use accessor functions to access GtkSelectionData
2010-12-16 00:16:00 +00:00
Javier Jardón
ad4ac2182a
gtk/gtknotebook.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:15 +00:00
Carlos Garnacho
3306305fe1
GtkNotebook: Use GtkStyleContext.
2010-12-13 22:31:29 +01:00
Carlos Garnacho
517eaa55e5
GtkNotebook: Set widget state as state flags.
2010-12-04 15:38:32 +01:00
Carlos Garnacho
c9a3da5025
GtkStyleContext: s/set/add/ and s/unset/remove/ for classes/regions.
...
Several classes and regions may be set to GtkStyleContext, so rename
the functions to be more intuitive.
2010-12-04 15:38:24 +01:00
Carlos Garnacho
7e7347d1a0
GtkNotebook: invert tab drawing order so region flags are set correctly.
2010-12-04 15:38:10 +01:00
Carlos Garnacho
a3637ec60d
s/child class/region/ everywhere.
...
"Child class" is an invented term anyway, and it conceptually defines
identifiable regions in widgets.
2010-12-04 15:37:35 +01:00
Carlos Garnacho
a323310c19
GtkNotebook: Set GtkChildClassFlags for tabs.
2010-12-04 15:37:10 +01:00
Tristan Van Berkom
9a80908c91
Removed size_request from GtkNotebook
2010-10-27 14:35:04 +09:00
Benjamin Otte
6e90804b30
notebook: Hi, I can't get my function prototypes right
...
Also, I refuse to compile with -Werror
2010-10-18 19:22:43 +02:00
Matthias Clasen
7791013754
Support GtkWidget expand properties in GtkNotebook
...
We expand a tab if either tab-expand is set, or the generic widget
expand property in the correct direction is set. And we do not
propagate expand flags from tab labels to the notebook, only
the expand flags from the pages.
2010-10-13 10:49:06 -04:00