]> Pileus Git - ~andy/gtk/log
~andy/gtk
13 years agoUpdate NEWS for 2.99
Matthias Clasen [Wed, 5 Jan 2011 03:49:54 +0000 (22:49 -0500)]
Update NEWS for 2.99

13 years agoBump version to 2.99
Matthias Clasen [Wed, 5 Jan 2011 03:01:48 +0000 (22:01 -0500)]
Bump version to 2.99

13 years agoBrush up configure output
Matthias Clasen [Wed, 5 Jan 2011 02:57:21 +0000 (21:57 -0500)]
Brush up configure output

Show used X extensions, print backends, etc.
Also make configure abort in some more cases when explicitly
enabled options are missing dependencies.

13 years agoDecouple GdkWindowCache life-cycle from GdkX11DragContext
Matthias Clasen [Wed, 5 Jan 2011 00:25:17 +0000 (19:25 -0500)]
Decouple GdkWindowCache life-cycle from GdkX11DragContext

By making window caches refcounted. This fixes problems with leaking
drag contexts, as experienced in
https://bugzilla.gnome.org/show_bug.cgi?id=637691
and
https://bugzilla.gnome.org/show_bug.cgi?id=144324

Based on a patch by drago01@gmail.com

13 years agoFix build when builddir != srcdir
Emilio Pozuelo Monfort [Tue, 4 Jan 2011 23:20:53 +0000 (23:20 +0000)]
Fix build when builddir != srcdir

13 years agoFix introspection build when builddir != srcdir
Emilio Pozuelo Monfort [Tue, 4 Jan 2011 20:24:47 +0000 (20:24 +0000)]
Fix introspection build when builddir != srcdir

So gdk/gdk.h can find gdk/gdkconfig.h, which is in $builddir
because it's generated.

13 years agoMove GtkEntryCompletion docs inline
Matthias Clasen [Tue, 4 Jan 2011 22:54:47 +0000 (17:54 -0500)]
Move GtkEntryCompletion docs inline

Based on a patch by Garrett Regier
https://bugzilla.gnome.org/show_bug.cgi?id=617322

13 years agoAdd gtkcellrenderer.sgml to .gitignore
Matthias Clasen [Tue, 4 Jan 2011 22:52:14 +0000 (17:52 -0500)]
Add gtkcellrenderer.sgml to .gitignore

13 years agoSmall doc cleanups for GtkCellLayout
Matthias Clasen [Tue, 4 Jan 2011 22:42:30 +0000 (17:42 -0500)]
Small doc cleanups for GtkCellLayout

13 years agoMove docs for gtkmain inline
Matthias Clasen [Tue, 4 Jan 2011 22:32:12 +0000 (17:32 -0500)]
Move docs for gtkmain inline

At the same time, introduce a gtkmainprivate.h header
and various other cleanups.

Based on a patch by Tadej Borovšak.
https://bugzilla.gnome.org/show_bug.cgi?id=617471

13 years agoRemove gtktypeutils altogether
Matthias Clasen [Tue, 4 Jan 2011 19:51:19 +0000 (14:51 -0500)]
Remove gtktypeutils altogether

Based on patches by Javier Jardón.

https://bugzilla.gnome.org/show_bug.cgi?id=629955

13 years agoRemove GtkArg, GtkCallbackMarshal and GtkFunction
Matthias Clasen [Tue, 4 Jan 2011 18:49:37 +0000 (13:49 -0500)]
Remove GtkArg, GtkCallbackMarshal and GtkFunction

Based on a patch by Javier Jardón.

https://bugzilla.gnome.org/show_bug.cgi?id=629955

13 years agoRemove deprecated gtk_quit_* API
Javier Jardón [Tue, 4 Jan 2011 18:39:35 +0000 (13:39 -0500)]
Remove deprecated gtk_quit_* API

13 years agoMove GtkExpander docs inline
Matthias Clasen [Tue, 4 Jan 2011 18:25:04 +0000 (13:25 -0500)]
Move GtkExpander docs inline

Based on a patch by Garrett Regier.

https://bugzilla.gnome.org/show_bug.cgi?id=617327

13 years agoMove GtkDrawingArea docs inline
Matthias Clasen [Tue, 4 Jan 2011 18:07:28 +0000 (13:07 -0500)]
Move GtkDrawingArea docs inline

Based on a patch by Garrett Regier.

https://bugzilla.gnome.org/show_bug.cgi?id=617315

13 years agogtkmenuitem: Use private pointer instead G_TYPE_INSTANCE_GET_PRIVATE
Javier Jardón [Tue, 4 Jan 2011 17:51:06 +0000 (18:51 +0100)]
gtkmenuitem: Use private pointer instead G_TYPE_INSTANCE_GET_PRIVATE

13 years agoRemove gtk_tree_menu_get_type from gtk3.types
Matthias Clasen [Tue, 4 Jan 2011 17:54:24 +0000 (12:54 -0500)]
Remove gtk_tree_menu_get_type from gtk3.types

13 years agoMove GtkDialog docs inline
Matthias Clasen [Tue, 4 Jan 2011 17:51:11 +0000 (12:51 -0500)]
Move GtkDialog docs inline

Based on a patch by Garrett Regier.

https://bugzilla.gnome.org/show_bug.cgi?id=617312

13 years agogtkmenu: Use private pointer instead G_TYPE_INSTANCE_GET_PRIVATE
Javier Jardón [Tue, 4 Jan 2011 17:32:22 +0000 (18:32 +0100)]
gtkmenu: Use private pointer instead G_TYPE_INSTANCE_GET_PRIVATE

13 years agoDrop explicit includes of gdkkeysyms.h
Matthias Clasen [Tue, 4 Jan 2011 17:21:41 +0000 (12:21 -0500)]
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.

13 years agoReduce includes of gtktypeutils.h to a minimum
Matthias Clasen [Tue, 4 Jan 2011 17:05:05 +0000 (12:05 -0500)]
Reduce includes of gtktypeutils.h to a minimum

13 years agoRemove an outdated doc statement.
Matthias Clasen [Tue, 4 Jan 2011 16:55:56 +0000 (11:55 -0500)]
Remove an outdated doc statement.

https://bugzilla.gnome.org/show_bug.cgi?id=553404

13 years agoSome more calendar doc additions
Matthias Clasen [Tue, 4 Jan 2011 16:44:09 +0000 (11:44 -0500)]
Some more calendar doc additions

Proposed by Nikos Kouremenos

https://bugzilla.gnome.org/show_bug.cgi?id=321958

13 years agoSome documentation additions
Matthias Clasen [Tue, 4 Jan 2011 16:36:42 +0000 (11:36 -0500)]
Some documentation additions

Proposed by Bruno Piguet.

https://bugzilla.gnome.org/show_bug.cgi?id=559503

13 years agoMention gvfs in the gtk_show_uri() docs
Matthias Clasen [Tue, 4 Jan 2011 16:25:40 +0000 (11:25 -0500)]
Mention gvfs in the gtk_show_uri() docs

https://bugzilla.gnome.org/show_bug.cgi?id=622125

13 years agoSome documentation improvements for gtk_init/gtk_parse_args
Matthias Clasen [Tue, 4 Jan 2011 16:18:42 +0000 (11:18 -0500)]
Some documentation improvements for gtk_init/gtk_parse_args

https://bugzilla.gnome.org/show_bug.cgi?id=562182

13 years agoDocument DESKTOP_STARTUP_ID use
Matthias Clasen [Tue, 4 Jan 2011 15:58:04 +0000 (10:58 -0500)]
Document DESKTOP_STARTUP_ID use

Closes https://bugzilla.gnome.org/show_bug.cgi?id=165987

13 years agogail: add/remove horizontal/vertical state based on orientation value
Szilárd Pfeiffer [Tue, 4 Jan 2011 15:47:54 +0000 (10:47 -0500)]
gail: add/remove horizontal/vertical state based on orientation value

Now, these states are depending on the widget class.

13 years agoGtkComboBox(Text): Add documentation about the entry
Milan Bouchet-Valat [Mon, 13 Dec 2010 20:45:07 +0000 (21:45 +0100)]
GtkComboBox(Text): Add documentation about the entry

13 years agoMove GtkEventBox docs inline
Matthias Clasen [Tue, 4 Jan 2011 15:31:19 +0000 (10:31 -0500)]
Move GtkEventBox docs inline

At the same time, add a private pointer, and generally clean
things up.

13 years agoRemoved TABs and trailing whitespace from GtkComboBox and GtkTreeMenu
Tristan Van Berkom [Tue, 4 Jan 2011 15:14:25 +0000 (00:14 +0900)]
Removed TABs and trailing whitespace from GtkComboBox and GtkTreeMenu

13 years agoMoved GtkMenuItem private functions to the private header.
Tristan Van Berkom [Tue, 4 Jan 2011 15:14:08 +0000 (00:14 +0900)]
Moved GtkMenuItem private functions to the private header.

13 years agoMentioned that GtkTreeMenu is based on some GtkComboBox code in the copyright header.
Tristan Van Berkom [Thu, 30 Dec 2010 08:35:44 +0000 (17:35 +0900)]
Mentioned that GtkTreeMenu is based on some GtkComboBox code in the copyright header.

13 years agoFixed conflicts after rebasing master into combo-refactor branch.
Tristan Van Berkom [Thu, 30 Dec 2010 08:28:26 +0000 (17:28 +0900)]
Fixed conflicts after rebasing master into combo-refactor branch.

13 years agoFixed GtkComboBox to properly set tearoff state on delegate GtkTreeMenu.
Tristan Van Berkom [Thu, 30 Dec 2010 07:46:50 +0000 (16:46 +0900)]
Fixed GtkComboBox to properly set tearoff state on delegate GtkTreeMenu.

This breakage was also the cause of not correctly positioning the child
menu over the selected item.

13 years agoFixed gtktreemenu for new gtkcellareabox api.
Tristan Van Berkom [Tue, 21 Dec 2010 12:50:02 +0000 (21:50 +0900)]
Fixed gtktreemenu for new gtkcellareabox api.

13 years agoMake GtkTreeMenu a private class:
Tristan Van Berkom [Wed, 15 Dec 2010 08:17:45 +0000 (17:17 +0900)]
Make GtkTreeMenu a private class:

  - Removed GtkTreeMenu from gtk-docs.sgml
  - Removed GtkTreeMenu from gtk3-sections.txt
  - Removed GtkTreeMenu from gtk.symbols
  - Make GtkTreeMenu apis prefixed with '_' (including _get_type()).
  - Updated GtkComboBox sources to use the private apis
  - Updated GtkCellView to not mention #GtkTreeMenu in gtk-doc statements
  - Updated tests/testtreemenu to not use a GtkTreeMenu but still
    show a very fancy GtkComboBox
  - Moved gtktreemenu.h to private headers section in the makefile.
  - Removed include of gtktreemenu.h from gtk.h

13 years agoAdded LISTMODE env var check to testcombo.c so that one can easily test listmode.
Tristan Van Berkom [Mon, 13 Dec 2010 11:17:10 +0000 (20:17 +0900)]
Added LISTMODE env var check to testcombo.c so that one can easily test listmode.

13 years agoAdded new constructors gtk_combo_box_new_with_area and gtk_combo_box_new_with_area_an...
Tristan Van Berkom [Mon, 13 Dec 2010 10:34:26 +0000 (19:34 +0900)]
Added new constructors gtk_combo_box_new_with_area and gtk_combo_box_new_with_area_and_entry.

13 years agoFixed GtkComboBox to let the cell-layout implementation handle <cell-packing>
Tristan Van Berkom [Mon, 13 Dec 2010 10:24:51 +0000 (19:24 +0900)]
Fixed GtkComboBox to let the cell-layout implementation handle <cell-packing>

13 years agoFixed gtk_tree_menu_path_in_menu function which has been malfunctioning.
Tristan Van Berkom [Wed, 8 Dec 2010 13:30:22 +0000 (22:30 +0900)]
Fixed gtk_tree_menu_path_in_menu function which has been malfunctioning.

Now sensitivity is properly handled in the "apply-attributes" callback.

13 years agoRemoved GtkComboBoxPrivate->minimum/natural_width members.
Tristan Van Berkom [Mon, 6 Dec 2010 12:40:33 +0000 (21:40 +0900)]
Removed GtkComboBoxPrivate->minimum/natural_width members.

And updated gtk_combo_box_list_position() which is still waiting
for GtkTreeView to report natural width in order to properly do
non fixed width dropdown menus.

13 years agoRe-refactored GtkComboBox to not reorder the file.
Tristan Van Berkom [Mon, 6 Dec 2010 12:30:00 +0000 (21:30 +0900)]
Re-refactored GtkComboBox to not reorder the file.

Turns out reordering the file the way I did before put
me in an unmergable situation, now re-refactored the
combo and list-mode works again.

13 years agoFixing GtkComboBox breakage after merge, completing hand-merge of style-context GtkBo...
Tristan Van Berkom [Sun, 5 Dec 2010 09:03:32 +0000 (18:03 +0900)]
Fixing GtkComboBox breakage after merge, completing hand-merge of style-context GtkBorder issues (now it works again).

13 years agoFixing GtkCellView to not strcmp() in buildable_custom_tag_end()
Tristan Van Berkom [Sat, 4 Dec 2010 08:14:32 +0000 (17:14 +0900)]
Fixing GtkCellView to not strcmp() in buildable_custom_tag_end()

GtkCellLayout function now returns boolean if one of the tags
it was interested in was handled.

13 years agoAdded clarification to the GtkCellView:cell-area-context documentation.
Tristan Van Berkom [Fri, 3 Dec 2010 09:55:24 +0000 (18:55 +0900)]
Added clarification to the GtkCellView:cell-area-context documentation.

13 years agoFixed a broken gtk-doc statement in gtktreemenu.c
Tristan Van Berkom [Fri, 3 Dec 2010 09:44:23 +0000 (18:44 +0900)]
Fixed a broken gtk-doc statement in gtktreemenu.c

13 years agoAdded remaining missing gtk-doc statements for GtkCellView.
Tristan Van Berkom [Fri, 3 Dec 2010 09:43:37 +0000 (18:43 +0900)]
Added remaining missing gtk-doc statements for GtkCellView.

13 years agoAdded GtkTreeMenu to gtk+ documentation and updated sections for newly added GtkCellV...
Tristan Van Berkom [Fri, 3 Dec 2010 09:29:40 +0000 (18:29 +0900)]
Added GtkTreeMenu to gtk+ documentation and updated sections for newly added GtkCellView apis.

13 years agoAdded all documentation for new GtkTreeMenu
Tristan Van Berkom [Fri, 3 Dec 2010 09:28:54 +0000 (18:28 +0900)]
Added all documentation for new GtkTreeMenu

13 years agoAdded new symbols for GtkTreeMenu and added GtkCellView apis to gtk.symbols
Tristan Van Berkom [Fri, 3 Dec 2010 09:28:20 +0000 (18:28 +0900)]
Added new symbols for GtkTreeMenu and added GtkCellView apis to gtk.symbols

13 years agoRemoved calls to gtk_cell_area_context_sum_*() since they went away.
Tristan Van Berkom [Sun, 28 Nov 2010 09:58:47 +0000 (18:58 +0900)]
Removed calls to gtk_cell_area_context_sum_*() since they went away.

13 years agoAdded aligned food menu test to testcombo.c
Tristan Van Berkom [Sat, 27 Nov 2010 07:50:18 +0000 (16:50 +0900)]
Added aligned food menu test to testcombo.c

13 years agoFixed combo-refactor branch for recent switch to gtk_cell_area_context_reset() api.
Tristan Van Berkom [Sat, 27 Nov 2010 07:32:36 +0000 (16:32 +0900)]
Fixed combo-refactor branch for recent switch to gtk_cell_area_context_reset() api.

13 years agoAdding a combo box to testtreemenu to show the GtkTreeMenu at work as a combo box...
Tristan Van Berkom [Fri, 26 Nov 2010 14:43:07 +0000 (23:43 +0900)]
Adding a combo box to testtreemenu to show the GtkTreeMenu at work as a combo box delegate.

13 years agoRevert "Added gtk_tree_menu_get_area()."
Tristan Van Berkom [Fri, 26 Nov 2010 12:44:59 +0000 (21:44 +0900)]
Revert "Added gtk_tree_menu_get_area()."

This reverts commit d32d7c8f9c4d2bcd7c5c206c09273ce67ed20df4.

13 years agoAdded orientation control to the treemenu test.
Tristan Van Berkom [Fri, 26 Nov 2010 12:36:28 +0000 (21:36 +0900)]
Added orientation control to the treemenu test.

13 years agoUpdated GtkCellView for new gtk_cell_area_context_allocate() api.
Tristan Van Berkom [Fri, 26 Nov 2010 12:30:30 +0000 (21:30 +0900)]
Updated GtkCellView for new gtk_cell_area_context_allocate() api.

13 years agoAligned prototypes in gtkcellview.h
Tristan Van Berkom [Fri, 26 Nov 2010 04:20:43 +0000 (13:20 +0900)]
Aligned prototypes in gtkcellview.h

13 years agoAdded gtk_tree_menu_get_area().
Tristan Van Berkom [Fri, 26 Nov 2010 04:20:14 +0000 (13:20 +0900)]
Added gtk_tree_menu_get_area().

13 years agoMake GtkCellView orientable and only allocate the cell area in the orientable orienta...
Tristan Van Berkom [Fri, 26 Nov 2010 04:18:08 +0000 (13:18 +0900)]
Make GtkCellView orientable and only allocate the cell area in the orientable orientation (unless its a "fit-model" cellview which gets both).

13 years agoRemoving apis from GtkCellView
Tristan Van Berkom [Fri, 26 Nov 2010 03:09:06 +0000 (12:09 +0900)]
Removing apis from GtkCellView

APIS: gtk_cell_view_get_desired_width_of_row &
gtk_cell_view_get_desired_height_for_width_of_row were introduced in
3.0 only for use from GtkComboBox and now the refactored cellview
does this transparently and just requests the right thing through
GtkWidget apis.

13 years agoOops one of my last commits disabled some tests, re-enabling them.
Tristan Van Berkom [Wed, 24 Nov 2010 12:45:03 +0000 (21:45 +0900)]
Oops one of my last commits disabled some tests, re-enabling them.

13 years agoFixed inserting and deleting rows for submenus of GtkTreeMenu
Tristan Van Berkom [Wed, 24 Nov 2010 12:40:33 +0000 (21:40 +0900)]
Fixed inserting and deleting rows for submenus of GtkTreeMenu

13 years agoGetting closer to updating the treemenu view properly from the model signals
Tristan Van Berkom [Wed, 24 Nov 2010 11:00:10 +0000 (20:00 +0900)]
Getting closer to updating the treemenu view properly from the model signals

13 years agoFixed GtkCellView to always allocate when in fit-model mode.
Tristan Van Berkom [Wed, 24 Nov 2010 09:27:51 +0000 (18:27 +0900)]
Fixed GtkCellView to always allocate when in fit-model mode.

13 years agoImplementing GtkComboBox using GtkTreeMenu !
Tristan Van Berkom [Wed, 24 Nov 2010 09:14:36 +0000 (18:14 +0900)]
Implementing GtkComboBox using GtkTreeMenu !

First iteration at implementing combo box using a delegate
treemenu, almost everything is working. Still need to finalize
sensitivity issues in GtkTreeMenu (and should go ahead and pass
through GtkComboBox code with a fine comb...).

13 years agoAdded "fit-model" and "draw-sensitive" properties to GtkCellView
Tristan Van Berkom [Wed, 24 Nov 2010 05:59:55 +0000 (14:59 +0900)]
Added "fit-model" and "draw-sensitive" properties to GtkCellView

 - "fit-model" decides that the cellview should request space for
   the entire treemodel, this ensures the cell view displayed on
   a combo box will not spuriously change size when the selected
   item changes.

 - "draw-sensitive" forces cell area to render cells sensitive
   even if they are insensitive in the model.

13 years agoMake GtkTreeMenu update menu item sensitivity when "apply-attributes" signal is fired...
Tristan Van Berkom [Wed, 24 Nov 2010 04:49:12 +0000 (13:49 +0900)]
Make GtkTreeMenu update menu item sensitivity when "apply-attributes" signal is fired for a row in the menu.

13 years agoSupport grid mode in GtkTreeMenu
Tristan Van Berkom [Tue, 23 Nov 2010 06:48:14 +0000 (15:48 +0900)]
Support grid mode in GtkTreeMenu

Added properties "wrap-width", "row-span-column" and "column-span-column"
to allow grid style menus from treemodels. Handling row data changes
appropriately.

13 years agoFixed GtkCellView to call cell_view_set_model() and disconnect signals at dispose...
Tristan Van Berkom [Tue, 23 Nov 2010 03:39:00 +0000 (12:39 +0900)]
Fixed GtkCellView to call cell_view_set_model() and disconnect signals at dispose time.

13 years agoAdded gtk_tree_menu_set/get_tearoff to allow the root menu to have a tearoff item
Tristan Van Berkom [Tue, 23 Nov 2010 03:11:52 +0000 (12:11 +0900)]
Added gtk_tree_menu_set/get_tearoff to allow the root menu to have a tearoff item

Combo boxes expose an "add-tearoffs" feature to add a tearoff item to the root of the combo menu, added this feature to GtkTreeMenu to achieve this (and updated the testcase).

13 years agoReduced code size in GtkTreeMenu by only implementing GtkCellLayout->get_area method...
Tristan Van Berkom [Mon, 22 Nov 2010 07:32:18 +0000 (16:32 +0900)]
Reduced code size in GtkTreeMenu by only implementing GtkCellLayout->get_area method for the GtkCellLayout iface.

13 years agoReduced code in GtkCellView by just implementing the GtkCellLayout->get_area method.
Tristan Van Berkom [Mon, 22 Nov 2010 07:29:26 +0000 (16:29 +0900)]
Reduced code in GtkCellView by just implementing the GtkCellLayout->get_area method.

13 years agoConnected to GtkTreeModel signals in GtkTreeMenu
Tristan Van Berkom [Mon, 22 Nov 2010 06:53:19 +0000 (15:53 +0900)]
Connected to GtkTreeModel signals in GtkTreeMenu

Now the GtkTreeMenu properly updates its hierarchy when the underlying
model data changes (row inserted/deleted or reordered). Also some unneeded
hackery was removed, all size calculations are delegated to the cellviews.

13 years agoGtkCellView now watches the "row-changed" signal.
Tristan Van Berkom [Mon, 22 Nov 2010 06:51:51 +0000 (15:51 +0900)]
GtkCellView now watches the "row-changed" signal.

When the "row-changed" signal on the model is trapped, if the row which
changed is the displayed row then the context is flushed and sizes are
recalculated for every area in the same context.

13 years agoAdded GtkTreeMenuHeaderFunc to decide if a submenu gets a leaf header.
Tristan Van Berkom [Sat, 20 Nov 2010 07:32:24 +0000 (16:32 +0900)]
Added GtkTreeMenuHeaderFunc to decide if a submenu gets a leaf header.

GtkComboBox needs treemenus to allow selection of all leafs including
rows which may have children, this allows the combobox or combobox user
to decide which row that has children can also be selectable as a header
leaf of the submenu. Test case testtreemenu updated to reflect this.

13 years agoFixed GtkCellView to not clear the layout when disposing
Tristan Van Berkom [Sat, 20 Nov 2010 07:30:51 +0000 (16:30 +0900)]
Fixed GtkCellView to not clear the layout when disposing

The layout belongs the underlying area which may be shared across
views and treemenus, let the cells be destroyed when the area is finally
destroyed.

13 years agoAdding more "small" submenus to testtreemenu
Tristan Van Berkom [Fri, 19 Nov 2010 05:59:14 +0000 (14:59 +0900)]
Adding more "small" submenus to testtreemenu

13 years agoFixed trailing ';' on if statement in gtkmenuitem.c
Tristan Van Berkom [Fri, 19 Nov 2010 05:56:59 +0000 (14:56 +0900)]
Fixed trailing ';' on if statement in gtkmenuitem.c

13 years agoAdded submenus to tests/testtreemenu
Tristan Van Berkom [Fri, 19 Nov 2010 04:39:30 +0000 (13:39 +0900)]
Added submenus to tests/testtreemenu

13 years agoFixed GtkTreeMenu to not infinitely recurse when building submenus.
Tristan Van Berkom [Fri, 19 Nov 2010 04:30:30 +0000 (13:30 +0900)]
Fixed GtkTreeMenu to not infinitely recurse when building submenus.

GtkTreeMenu needs to only populate it's submenus when set_root()
is called, we were populating it when the model is set which cause
the tree to be infinitely populated as the root is NULL by default.

Also call gtk_menu_set_reserve_toggle_thingy (FALSE) to not reserve
space for the toggle size.

13 years agoFixed GtkMenuItem to reserve the actual arrow size and spacing
Tristan Van Berkom [Fri, 19 Nov 2010 04:29:20 +0000 (13:29 +0900)]
Fixed GtkMenuItem to reserve the actual arrow size and spacing

GtkMenuItem was reserving arrow size based on it's requested height,
now base the submenu arrow size on the actual arrow size and spacing.

13 years agoAdding GtkTreeMenu class.
Tristan Van Berkom [Thu, 18 Nov 2010 08:33:23 +0000 (17:33 +0900)]
Adding GtkTreeMenu class.

Added GtkTreeMenu class to automatically render
a GtkTreeModel into a GtkMenu hierarchy (will be
used by GtkComboBox for its dropdown menus). Included
an accompanying testcase tests/testtreemenu

13 years agoAdded gtk_menu_item_set/get_reserve_indicator.
Tristan Van Berkom [Thu, 18 Nov 2010 08:31:31 +0000 (17:31 +0900)]
Added gtk_menu_item_set/get_reserve_indicator.

This is needed by GtkTreeMenu to ensure that child menu items
reserve space for the submenu indicator even if they dont have
submenus... in this way we ensure the same size of all cell
areas in the menu items at allocation/request time.

13 years agoFixing GtkCellView PROP_CELL_AREA_CONTEXT property id
Tristan Van Berkom [Thu, 18 Nov 2010 08:30:33 +0000 (17:30 +0900)]
Fixing GtkCellView PROP_CELL_AREA_CONTEXT property id

... and renaming some internal variables.

13 years agoAdded gtk_cell_view_new_with_context().
Tristan Van Berkom [Thu, 18 Nov 2010 06:21:41 +0000 (15:21 +0900)]
Added gtk_cell_view_new_with_context().

13 years agoReimplemented GtkCellView using an internal GtkCellArea.
Tristan Van Berkom [Thu, 18 Nov 2010 04:53:55 +0000 (13:53 +0900)]
Reimplemented GtkCellView using an internal GtkCellArea.

Added construct GtkCellArea and GtkCellAreaContext properties,
the context property allows putting multiple cellviews into the
same size request context.

13 years agoRemoved GtkMenuItem->show_submenu_indicator flag
Tristan Van Berkom [Wed, 17 Nov 2010 07:00:34 +0000 (16:00 +0900)]
Removed GtkMenuItem->show_submenu_indicator flag

The show_submenu_indicator flag was explicitly set in various
places from GtkMenu/GtkMenuBar at request times, since the
GtkMenuItem already checks the parent type for GTK_IS_MENU_BAR()
in various places, removed this flag in favor of just checking
the parent type (only in the interest of better readable code).

13 years agoFormatting fixes and whitespace cleanups
Matthias Clasen [Tue, 4 Jan 2011 07:21:38 +0000 (02:21 -0500)]
Formatting fixes and whitespace cleanups

13 years agoRemove pack property altogether
Matthias Clasen [Tue, 4 Jan 2011 07:06:03 +0000 (02:06 -0500)]
Remove pack property altogether

13 years agoRemove pack consideration from tab drawing
Matthias Clasen [Tue, 4 Jan 2011 07:03:03 +0000 (02:03 -0500)]
Remove pack consideration from tab drawing

13 years agoDon't consider pack when allocating tabs
Matthias Clasen [Tue, 4 Jan 2011 06:57:22 +0000 (01:57 -0500)]
Don't consider pack when allocating tabs

13 years agoDrop pack consideration from gtk_notebook_search_page
Matthias Clasen [Tue, 4 Jan 2011 06:39:18 +0000 (01:39 -0500)]
Drop pack consideration from gtk_notebook_search_page

13 years agoDrop internal function to find page position
Matthias Clasen [Tue, 4 Jan 2011 06:36:09 +0000 (01:36 -0500)]
Drop internal function to find page position

13 years agoRemove pack consideration from tab dnd
Matthias Clasen [Tue, 4 Jan 2011 06:31:47 +0000 (01:31 -0500)]
Remove pack consideration from tab dnd

13 years agoRemove pack consideration from tab reordering
Matthias Clasen [Tue, 4 Jan 2011 06:23:05 +0000 (01:23 -0500)]
Remove pack consideration from tab reordering

13 years agoRemove pack arguments from some internal functions
Matthias Clasen [Tue, 4 Jan 2011 06:11:28 +0000 (01:11 -0500)]
Remove pack arguments from some internal functions

This removes pack from gtk_notebook_{set,query}_tab_label_packing.

13 years agoRemove the deprecated GtkNotebook:tab-pack child property
Matthias Clasen [Tue, 4 Jan 2011 05:57:34 +0000 (00:57 -0500)]
Remove the deprecated GtkNotebook:tab-pack child property

13 years agoDon't use GtkNotebook:tab-pack in testnotebookdnd
Matthias Clasen [Tue, 4 Jan 2011 05:55:50 +0000 (00:55 -0500)]
Don't use GtkNotebook:tab-pack in testnotebookdnd