Carlos Garnacho
c0d08ff627
GtkToolItemGroup: Set widget state as state flags.
2010-12-04 15:38:33 +01:00
Chun-wei Fan
76dc9e6b53
gtk: fix C99-style variable declarations in various sources
2010-11-10 10:08:14 +08:00
Ryan Lortie
fbdcf193ae
gtktoolitemgroup: don't use GTimeSpec
...
Use gint64 time instead.
2010-11-03 08:26:27 -04:00
Matthias Clasen
69c7213ba9
GtkToolitemGroup: Use monotonic clock for animation timeout
2010-11-01 11:43:15 -04:00
Tristan Van Berkom
1523509467
Removed size_request from GtkToolItemGroup
...
Ofcourse GtkToolPalette needs real migration to height-for-width
apis, this patch just removes the need for the size_request
signal and vfunc.
2010-10-28 15:16:06 +09:00
Tristan Van Berkom
6e22c646c6
Use gtk_widget_set_size_request() instead of handling "size-request" signals.
2010-10-28 14:56:04 +09:00
Michael Natterer
a46dec176e
gtk: use the new scrollable API to get scroll adjustments
2010-10-22 17:03:21 +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
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
bec11c352d
toolitemgroup: Connect to draw signal
2010-09-26 15:11:40 +02:00
Benjamin Otte
2ee8fdb79b
gtk: gdk_drawable_get_display() => gdk_window_get_display()
2010-09-26 15:11:33 +02:00
Benjamin Otte
e8a6bad00b
gtk: Don't set colormap anymore when creating GDK windows
...
Colormaps are about to be removed, so not using them sounds like an
awesome idea.
2010-09-26 15:11:31 +02:00
Benjamin Otte
6607f2b794
API: Rename gdk_set_source_pixmap() to gdk_set_source_window()
...
That's what it's used for now.
2010-09-26 15:11:30 +02:00
Matthias Clasen
e0aa12eb0a
Tons of transfer annotations
2010-09-21 00:18:11 -04:00
Javier Jardón
b140884fec
Use gtk_size_request_get_size() instead deprecated gtk_widget_size_request()
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629598
Signed-off-by: Javier Jardón <jjardon@gnome.org>
Signed-off-by: Tristan Van Berkom <tristanvb@openismus.com>
2010-09-15 03:02:58 +02:00
Philip Withnall
ba158a24fe
Miscellaneous property string fixes
2010-08-29 19:00:14 +01:00
Javier Jardón
1f9eb57338
gtk/gtktoolitemgroup.c: use accessor functions to access GtkWidget
2010-08-22 21:25:23 +02:00
Javier Jardón
3a10216dd0
Use accessor functions to acces GtkContainer
2010-07-13 19:40:46 +02:00
Javier Jardón
0a07e9733b
gtk/: fully remove gtkalias hacks
...
https://bugzilla.gnome.org/show_bug.cgi?id=623845
2010-07-10 02:51:26 +02:00
Tristan Van Berkom
b4d09fd5fb
Fixed possible devision by zero in size negotiations
...
Fixed GtkToolItemGroup to avoid deviding by zero when all children
are invisible or there are no children. bgo #613974 .
2010-03-29 13:27:40 -04:00
Tristan Van Berkom
7e43059e84
Added missing default events in realize() implementations
...
Added gtk_widget_get_events() to the event masks declared by
GtkToolPalette & GtkToolItemGroup.
2010-03-29 13:22:18 -04:00
Tristan Van Berkom
133e3e84a7
Added missing break statement to mutator: gtk_tool_item_group_set_property()
2010-03-29 13:16:54 -04:00
Javier Jardón
1934de4b65
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_REALIZED)
...
Use new API instead: gtk_widget_set_realized ()
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-06 11:51:33 +01:00
Javier Jardón
16a59ad912
Deprecate widget flag: GTK_WIDGET_REALIZED
...
Use gtk_widget_get_realized() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-03 20:41:05 +01:00
Javier Jardón
1fe7d3cefd
Deprecate widget flag: GTK_WIDGET_MAPPED
...
Use gtk_widget_get_mapped() instead.
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-03 20:19:03 +01:00
Javier Jardón
214a023e91
Deprecate widget flag: GTK_WIDGET_VISIBLE
...
Use gtk_widget_get_visible() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-01 07:52:07 +01:00
Matthias Clasen
e601f6c478
doc fixes
2010-02-23 14:14:02 -05:00
Matthias Clasen
1f8d468123
Adjust default value for GtkToolItemGroup::label
2009-11-27 00:14:37 -05:00
Matthias Clasen
837775af7b
Fix up docs, and set up the aliasing machinery
2009-11-26 23:52:20 -05:00
Johannes Schmid
bffd43bd8f
toolpalette: Don't call gdk_window_process_updates() in the animation callback
...
That does not seem to make any difference.
2009-11-18 10:38:45 +01:00
Johannes Schmid
ffce5223fc
toolpalette: Fixed inconsistent spacing
2009-11-11 10:02:36 +01:00
Johannes Schmid
0e2a5509f6
toolpalette: fixed trailing whitespaces
2009-11-11 09:42:49 +01:00
Johannes Schmid
3b2ae9dc3e
toolpalettte: Fixed some style issues
2009-11-11 09:32:15 +01:00
Johannes Schmid
e8b640104e
toolpalette: Always show text horizontally
2009-11-11 09:27:00 +01:00
Johannes Schmid
1de2a55eaf
Ported gtktoolpalette from a custom array to GPtrArray.
...
...and some mixed fixes of things mentioned in the bug report
2009-11-09 22:16:15 +01:00
Johannes Schmid
02a9d9afd8
Remove G_GNUC_UNUSED
2009-11-07 10:56:59 +01:00
Johannes Schmid
ed41fa8b50
Fixed GtkToolPalette API docs to mention 2.20 instead of 2.18
2009-10-28 13:17:13 +01:00
Johannes Schmid
e83013c066
Fix custom label handling in gtktoolitemgroup
2009-10-28 13:11:37 +01:00
Murray Cumming
a14e05fa59
GtkToolItemGroup now has label and label-widget properties.
...
* demos/gtk-demo/toolpalette.c (load_special_items): Demonstrate
gtk_tool_item_group_set_label_widget().
* gtk/gtktoolitemgroup.[h|c]: Rename the "item-group-name" property to
"label" because that is what it is. Likewise rename the functions.
Add a "label-widget" propert and get/set_label_widget() functions,
based on the same code/API in GtkExpander.
2009-07-14 23:46:49 +02:00
Murray Cumming
fc226767eb
GtkToolItemGroup: Rename the name property. GtkToolPalette: Added class padding.
...
* gtk/gtktoolitemgroup.[h|c]: Rename the name property to item-group-name
and rename get/set_name() to get/set_item_group_name(), to avoid a clash with
GtkWidget::name.
* gtk/gtktoolpalette.h: GtkToolPaletteClass: Add padding for future use.
2009-07-14 19:53:28 +02:00
Murray Cumming
ac7b0c91ae
ToolPalette: Implement GtkOrientable.
...
* gtk/gtktoolpalette.[h|c]: Remove gtk_tool_palette_get/set_property(),
implementing GtkOrientable instead.
* gtk/gtktoolitemgroup.c:
* demos/gtk-demo/toolpalette.c: Use gtk_orientable_* instead.
2009-07-14 19:11:20 +02:00
Murray Cumming
2976f4d98c
GtkTool*: Removed the HAVE_EXTENDED_TOOL_SHELL_SUPPORT_BUG_535090 ifdefs. This gives us nicer text alignment among other things.
2009-07-13 19:37:25 +02:00
Johannes Schmid
5a1415feda
Added GtkToolPalette.
...
* gtk/gtktoolpallete.[h|cc]:
* gtk/gtktoolitemgroup.[h|cc]: Added a tool pallete container widget,
with groups of toolbar items that can be shown as a grid of icons
or a list of names.
* gtk/Makefile.am:
* gtk/gtk.h:
* gtk/gtkmarshal.list: Mentioned the new files.
Bug #567729
2009-07-13 17:38:34 +02:00