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
Javier Jardón
5a30dad531
docs: Move documentation to inline comments: GtkComboBox
2010-10-04 02:37:42 +02:00
Ignacio Casal Quinteiro
13c4c554ef
Add missing vfuncs to gtknotebook.
2010-10-03 21:48:56 +02:00
Javier Jardón
bbd80b671a
docs: Move documentation to inline comments: GtkNotebook
2010-10-03 20:21:48 +02:00
Matthias Clasen
0bca60fdd3
GTK docs: various fixups
2010-10-01 13:05:12 -04:00
Benjamin Otte
6c7daaf8b9
notebook: Fix compilation warnings - missing cast
2010-09-28 18:24:34 +02:00
Matthias Clasen
f53ad33994
Remove GtkObject completely
2010-09-26 22:18:19 -04:00
Javier Jardón
eac1959d2c
Move destroy signal to GtkWidget
...
Also make GtkWidget derive from GInitiallyUnowned
2010-09-26 22:18:18 -04:00
Benjamin Otte
92732ffea0
notebook: Use gtk_cairo_transform_to_window()
2010-09-26 15:11:46 +02:00
Benjamin Otte
d9c9259861
Move GtkSizeRequest into GtkWidget
...
It doesn't make sense to keep them separate as GtkSizeRequest requires a
GtkWidget and GtkWidget implements GtkSizeRequest, so you can never have
one without the other.
It also makes the code a lot easier because no casts are required when
calling functions.
Also, the names would translate to gtk_widget_get_width() and people
agreed that this would be a too generic name, so a "preferred" was added
to the names.
So this patch moves the functions:
gtk_size_request_get_request_mode() => gtk_widget_get_request_mode()
gtk_size_request_get_width() => gtk_widget_get_preferred_width()
gtk_size_request_get_height() => gtk_widget_get_preferred_height()
gtk_size_request_get_size() => gtk_widget_get_preferred_size()
gtk_size_request_get_width_for_height() =>
gtk_widget_get_preferred_width_for_height()
gtk_size_request_get_height_for_width() =>
gtk_widget_get_preferred_height_for_width()
... and moves the corresponding vfuncs to the GtkWidgetClass.
The patch also renames the implementations of the vfuncs in widgets to
include the word "preferrred".
2010-09-26 15:11:45 +02:00
Benjamin Otte
6eb6135e2d
notebook: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:44 +02:00
Benjamin Otte
1d3f6b30b0
API: Rename gtk_cairo_paint_*() to gtk_paint_*()
...
Large patch, but just renaming.
Indentation should still mostly be correct because I took care of
keeping the indentation for this function name.
2010-09-26 15:11:42 +02:00
Benjamin Otte
5f771c8a9f
notebook: Connect to draw signal
2010-09-26 15:11:40 +02:00
Benjamin Otte
f383e1f183
notebook: Port to draw vfunc
2010-09-26 15:11:38 +02:00
Benjamin Otte
21099d31ed
notebook: The drawable check is not necessary
...
Large patch, but that's only indentation.
2010-09-26 15:11:38 +02:00
Benjamin Otte
fadf269a36
notebook: Draw tabs and arrows with Cairo
...
Includes a fix to only draw the current page once during a drag
operation.
2010-09-26 15:11:38 +02:00
Benjamin Otte
ad030e1696
notebook: Simplify draw_tab function a bit
...
Don't keep lots of local variables that are only used once.
2010-09-26 15:11:38 +02:00
Benjamin Otte
806bcb10ff
notebook: remove check for is_drawable
...
When we reach that code, the widget will always be drawable
2010-09-26 15:11:37 +02:00