Commit Graph

21406 Commits

Author SHA1 Message Date
Jorge González
92ae8ebb01 Updated Spanish translation 2010-06-24 18:09:06 -04:00
Javier Jardón
380120bda9 [gtkaccessible] Use the correct guards in gtk_accessible_set_widget()
Also, allow the widget variable to be NULL
2010-06-24 18:09:06 -04:00
Tor Lillqvist
2517035bc0 Generate correct grab broken event for WM_KILLFOCUS
WM_KILLFOCUS means that a keyboard grab (not a pointer grab), if any,
has been broken. I don't think this bug has matterd much as gtk
generates a grab-broken-event signal for both keybord and pointer
grabs being broken anyway.
2010-06-24 18:09:06 -04:00
Federico Mena Quintero
3651dc278d bgo#328069 - Add gtk_message_dialog_get_message_area()
Signed-off-by: Federico Mena Quintero <federico@novell.com>
2010-06-24 18:09:06 -04:00
Vincent Untz
2c7058bd13 bgo#622371 - Add gtk_accessible_set_widget() - the widget field was GSEAL()ed.
https://bugzilla.gnome.org/show_bug.cgi?id=622371
2010-06-24 18:09:06 -04:00
Chris Kühl
ed639b211e [docs] Fixes issue with GtkEntryBuffer signal documentation 2010-06-24 18:09:06 -04:00
Murray Cumming
49f050a9bc gtkenums.h: Remove trailing comma to fix warning. 2010-06-24 18:09:06 -04:00
Tristan Van Berkom
51dadc0a1a Added test case to reflect natural size allocations in GtkTreeView and GtkTreeViewColumn 2010-06-23 18:02:05 -04:00
Tristan Van Berkom
1700cbe458 Implemented natural size allocations in GtkTreeView and GtkTreeViewColumn
This patch adds gtk_tree_view_column_allocate_width() to compute
the renderer allocation when the column width changes, furthermore
it effects treeview to allocate columns respecting their natural
widths (height-for-width requests still not effecting row heights).
2010-06-23 17:55:45 -04:00
Tristan Van Berkom
ee097eb7ab Fixing debug build (s/extended layout/size request/ in GTK_NOTE flags). 2010-06-23 17:53:30 -04:00
Tristan Van Berkom
9f6c01c665 Refactored gtk_tree_view_column_cell_process_action() and removed
much redundant code.
2010-06-22 13:43:21 -04:00
Tristan Van Berkom
101ad51803 Added height-for-width apis to treeviewcolumn
Added get_natural_width() and get_height_for_width() apis
which need to be treated in a special way from treeview because
of the intricate nature of treeviews and thier requirements:
  - get_natural_width() must be called in the request phase for
    every row which will cache the ->requested_width and ->natural_width
  - get_height_for_width() must be called only after caching the widths
    for the entire view
2010-06-22 13:01:39 -04:00
Tristan Van Berkom
99f73c09f6 Revert "Fixed GtkSpinner to request 12x12 at init time instead of at expose time."
This reverts commit 0dff033a64.

That commit was introduced as a workaround to an erronous state
in the extended layout work, it was not merged into master and
this new commit backs it out from native-layout branch.
2010-06-20 14:30:03 -04:00
Tristan Van Berkom
7c66a29e87 Merge branch 'master' into native-layout 2010-06-20 14:23:14 -04:00
Tristan Van Berkom
0eff4061ab Some more gtk-doc corrections 2010-06-20 14:19:10 -04:00
Tristan Van Berkom
9653cf57b6 Make cell renderer's wrap to allocation. 2010-06-20 14:16:01 -04:00
Klemen Košir
a090f331b9 Updated Slovenian translation 2010-06-20 11:40:58 +02:00
Javier Jardón
d47e63856b Do not distribute GIRs 2010-06-20 08:20:42 +02:00
Javier Jardón
f96be1ab10 [gdkpango] Fix typo 2010-06-20 01:14:17 +02:00
Javier Jardón
d5d7fd9f51 Remove unused gtk_style_get_font_internal() function
This function is no longer necesary as draw_string() function
was dropped from GtkStyle
See commit 5300dc2b36
2010-06-20 00:50:52 +02:00
Javier Jardón
349f8c561d Remove gdk_input_* callbacks on file descriptors deprecated functions
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=619687
2010-06-20 00:46:38 +02:00
Javier Jardón
3c8a54b2f7 Remove GdkWChar deprecated code 2010-06-20 00:22:26 +02:00
Javier Jardón
ca046f0cfb Remove deprecated gdk_text_* and gdk_string_* functions
Remove gdk_string_extents(), gdk_text_extents(),
gdk_text_extents_wc(), gdk_string_width(), gdk_text_width(),
gdk_text_width_wc(), gdk_string_measure(), gdk_text_measure(),
gdk_string_height(), gdk_text_height()
2010-06-20 00:22:26 +02:00
Javier Jardón
0de0914021 Remove gdk_char_* deprecated functions
Remove gdk_char_width(), gdk_char_width_wc(), gdk_char_measure()
and gdk_char_height()
2010-06-20 00:21:51 +02:00
Javier Jardón
4cf4470fcd Remove deprecated GdkDrawable functions
Remove gdk_drawable_get_data(), gdk_drawable_set_data(),
gdk_drawable_ref(), gdk_drawable_unref(),
gdk_draw_string(), gdk_draw_text(), gdk_draw_text_wc()
2010-06-19 21:39:22 +02:00
Matthias Clasen
2a2843c041 Prevent concurrent use of GTK+ 2 and 3
If we detect a gtk2-only symbol, error out early.
2010-06-18 22:27:26 -04:00
Matthias Clasen
32dd5882a0 Fix make check 2010-06-18 21:58:36 -04:00
Matthias Clasen
91268713a0 A forgotten rename 2010-06-18 21:58:19 -04:00
Tristan Van Berkom
06a5095dc5 Created a _gtk_distribute_allocation() helper function for size allocators.
Migrated a portion of the GtkBox allocator loop to live in
a private function and be reused for distribution of space along
a single orientation.
2010-06-18 19:40:02 -04:00
Tristan Van Berkom
ee9115fb9f Mass API change commit GtkExtendedCell --> GtkCellSizeRequest
This commit moves gtkextendedcell.[ch] --> gtkcellsizerequest.[ch]
and effects the API change all over the tree.

Furthermore it includes the initial height-for-width implementation
on GtkCellRendererText.
2010-06-18 17:07:03 -04:00
Tristan Van Berkom
33d3f72b98 More gtk-doc cleanup 2010-06-18 17:06:29 -04:00
Emmanuele Bassi
b98667d41e application: Remove a variable and silence a compiler warning 2010-06-18 14:26:57 +01:00
Emmanuele Bassi
2755b93913 application: Revert the leak plug
The &s in the signature of a GVariant means "pass me a pointer". To
avoid repeating the same mistake, use a const gchar* to declare the
key.
2010-06-18 14:26:05 +01:00
Emmanuele Bassi
3e1b82336c application: Plug a leak
The key returned by g_variant_iter_next() should be freed as well.

Also, clean up the coding style a bit.
2010-06-18 12:06:39 +01:00
Tristan Van Berkom
4ef145bda6 Merge branch 'master' into native-layout
Conflicts:
	gtk/Makefile.am
	gtk/gtk.h
	gtk/gtk.symbols
	gtk/gtksizerequest.c
2010-06-18 00:44:00 -04:00
Tristan Van Berkom
5f4309be96 Fixed some typos in new docs that are about GtkSizeRequest (not GtkSizeGroup) 2010-06-18 00:32:09 -04:00
Tristan Van Berkom
4e23171803 Removed extendedlayoutexample.c (was a failed git mv --> testheightforwidth.c) 2010-06-18 00:12:55 -04:00
Tristan Van Berkom
edd57602b8 Mass api change from GtkExtendedLayout --> GtkSizeRequest
This commit makes a few massive changes to the extended layout
code:
  a.) gtkextendedlayout.c --> gtksizerequest.c
  b.) _is_height_for_width --> get_request_mode()
  c.) get_desired_size(), get_desired_width(), get_desired_height() -->
      get_size(), get_width(), get_height()

This is the first partial commit and only effects portions
of the tree that have already been merged in master (in order to
easily cherry pick this commit).

Conflicts:

	gtk/Makefile.am
	gtk/gtk.h
	gtk/gtk.symbols
	gtk/gtkextendedlayout.h
2010-06-18 00:11:26 -04:00
Matthias Clasen
cf75457faa Bump version 2010-06-17 21:09:50 -04:00
Tristan Van Berkom
6e705d7087 Completed missing peices of the GtkExtendedCell api 2010-06-17 20:58:59 -04:00
Tristan Van Berkom
c2abe27b03 Created _gtk_cell_renderer_calc_offset()
Created an internal helper to replace the meaningless 'cell_area',
'x_offset' and 'y_offset' from gtk_cell_renderer_get_size() which
will be deprecated in favor of the new h4w api. At this point GTK+
does no longer depend on renderers calculating this alignment and
its safe to change the calls to gtk_extended_cell_get_desired_size().
2010-06-17 20:58:59 -04:00
Tristan Van Berkom
c20c3fd757 Mass api change from GtkExtendedLayout --> GtkSizeRequest part 2.
This commit makes the api change on the remaining portions of the
native-layout branch.
2010-06-17 20:41:01 -04:00
Tristan Van Berkom
c5a0e04a8d Mass api change from GtkExtendedLayout --> GtkSizeGroup
This commit makes a few massive changes to the extended layout
code:
  a.) gtkextendedlayout.c --> gtksizerequest.c
  b.) _is_height_for_width --> get_request_mode()
  c.) get_desired_size(), get_desired_width(), get_desired_height() -->
      get_size(), get_width(), get_height()

This is the first partial commit and only effects portions
of the tree that have already been merged in master (in order to
easily cherry pick this commit).
2010-06-17 20:38:16 -04:00
Matthias Clasen
aab1a96d46 Updates 2.90.3 2010-06-17 20:06:41 -04:00
Christian Persch
9d0b941da6 application: Fix marshaler for GVariant gtype change
Use VARIANT instead of BOXED.
2010-06-18 00:25:06 +02:00
Stanislas Marquis
a14c820aa9 [docs] Fix gtk_tree_sortable_set_sort_column_id()
@sortable => @sort_column_id

Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-06-17 18:22:54 +02:00
Matthias Clasen
9eef134efb Bump glib requirement 2010-06-17 11:57:02 -04:00
Javier Jardón
d581c619db [docs/gtk-faq] Close <para> tag 2010-06-17 17:43:32 +02:00
Emmanuele Bassi
4f357dbf95 application: Allow sub-classes to override the Window creation
Sub-classes of GtkApplication might want to override the way an
application window is created - for instance, to hook into GtkBuilder
or to set up some basic UI or state.

A new GtkApplication::create_window() virtual function is added to the
GtkApplicationClass vtable, which returns the newly created GtkWindow.
The gtk_application_create_window() function calls the vfunc and adds
the returned window to the list of windows managed by the application
instance.

Calling gtk_application_add_window() will also set the default window,
if one is not already set.

This commit also removes a spurious g_object_ref_sink() on the newly
created GtkWindow.
2010-06-17 15:41:12 +01:00
Javier Jardón
b74fb44c11 gail: do not use removed GTK_WIDGET_*SET macros
In the absence of new API to port to, left the code commented
with a /* FIXME */ state, for somebody with better gail knowledge
to fix.
2010-06-16 20:41:05 +02:00