Commit Graph

405 Commits

Author SHA1 Message Date
Javier Jardón
291ead9105 Reintroduce gtk_progress_* api in gtk.symbols
This api is deprecated but GtkToolBar still uses it
2010-05-07 09:24:34 +02:00
Matthias Clasen
77d4d3cdae Merge branch 'gtk-2-90'
Conflicts:
	gtk/gtkentry.h
2010-05-06 22:55:02 -04:00
Javier Jardón
7692a427a6 Added api to reset the im context in GtkTextView and GtkEntry
Also, added api to allow an input method to internally handle
key press and release events in the GtkTextView and GtkEntry
cases.
This is simply a wrapper to the gtk_im_context_filter_keypress()
function, but It's added to not access the ->im_context
directly.
Based on a Christian Dywan patch

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=163251
2010-05-05 03:14:28 +02:00
John (J5) Palmieri
33194ff5f4 add a get_indices_with_depth method to GtkTreePath with proper GI array annotations
* get_indices does not return a length so we can not annotate it to return an
  array in bindings that use GObject Introspection
* this method is the same as get_indices except it takes an int * as the depth
  parameter which we can then use in the array annotation
* in C this function returns an integer pointer array and updates depth to the
  number of integers in the array
* in a GI binding this returns the native array type for the bound language
  (e.g. in PyGI this returns a list of integers)
2010-05-03 12:47:38 -04:00
Javier Jardón
0e79972d24 Remove GtkTreeItem completely 2010-05-03 01:51:23 +02:00
Javier Jardón
d7786d4a9e Remove GtkTree completely 2010-05-03 01:51:23 +02:00
Javier Jardón
0669d8d6e9 Remove GtkText completely 2010-05-03 01:51:23 +02:00
Javier Jardón
c77c69502c Restore non-deprecated GtkToolbar functions in gtk.symbols
The functions gtk_toolbar_set_icon_size() and
gtk_toolbar_unset_icon_size() are not deprecated
2010-05-03 01:51:23 +02:00
Javier Jardón
9a4e3371e2 Remove GtkTooltips completely 2010-05-03 01:51:23 +02:00
Javier Jardón
3d6b45f7d2 Remove GtkOptionMenu completely 2010-05-03 01:51:23 +02:00
Javier Jardón
6f3d152bee Remove all gtk_marshal_* functions from the gtk.symbols 2010-05-03 01:51:23 +02:00
Javier Jardón
ffd80c80c9 Remove gtk_fixed_get_has_window() and gtk_fixed_set_has_window() 2010-05-03 01:51:21 +02:00
Javier Jardón
32697682cc Remove GtkOldEditable completely 2010-05-03 01:51:21 +02:00
Christian Dywan
4019007ceb Remove GtkSideType, GtkMatchType, GtkPreviewType and GtkSignalRunType 2010-05-03 01:51:21 +02:00
Christian Dywan
c742482d48 Remove GtkType legacy API and type definitions 2010-05-03 01:51:21 +02:00
Christian Dywan
e0969a1327 Remove GtkObject floating, weak, arg and user data handling 2010-05-03 01:51:21 +02:00
Javier Jardón
e84a330f5a Cleaning gtk-symbols file
Remove some already removed symbols
2010-05-03 01:51:21 +02:00
Javier Jardón
74e6844488 Remove GtkCurve completely 2010-05-03 01:51:20 +02:00
Javier Jardón
d97ca04f5b Remove GtkGammaCurve completely 2010-05-03 01:51:20 +02:00
Javier Jardón
fb88f34e06 Remove remaining deprecated GtkInputDialog stuff 2010-05-03 01:51:18 +02:00
Michael Natterer
f7813125bb Remove all deprecated stuff from gtkmain 2010-05-03 01:51:18 +02:00
Christian Dywan
90d514a8a5 Remove deprecated GtkEntry functions 2010-05-03 01:51:18 +02:00
Javier Jardón
1e8fa9354a Remove GtkPixmap completely 2010-05-03 01:51:17 +02:00
Javier Jardón
e031c4f54a Remove GtkSignal completely 2010-05-03 01:51:17 +02:00
Javier Jardón
c9251c99e7 Remove deprecated code: GtkHButtonBox 2010-05-03 01:51:17 +02:00
Javier Jardón
858d4fb007 Remove remaining GtkButtonBox deprecated stuff
This completes commit b1b986cc604bffd924a13fbcb180dd234a0b8d14
2010-05-03 01:49:40 +02:00
Javier Jardón
740a1007eb Remove remaining GtkContainer deprecated stuff
This completes commit 600216daac6df8deb0cdc042fc27f07a9c5c7c27
2010-05-03 01:49:25 +02:00
Javier Jardón
9e30bf3d60 Remove deprecated code: GtkPaned 2010-05-03 01:48:45 +02:00
Javier Jardón
c9dae4c600 Remove deprecated code: GtkCheckMenuItem 2010-05-03 01:48:45 +02:00
Javier Jardón
0a6557d721 Remove deprecated GtkCellRenderer function 2010-05-03 01:41:37 +02:00
Javier Jardón
c1182debd0 Remove deprecated GtkAction functions 2010-05-03 01:41:37 +02:00
Christian Dywan
ed60f1e5ad Update gtk.symbols according to removed symbols 2010-05-03 01:41:36 +02:00
Javier Jardón
1cf85176e4 Add gtk_extended_layout_get_desired_size() to gtk.symbols 2010-05-01 16:04:51 +02:00
Matthias Clasen
db76c77b81 Merge branch 'native-layout-incubator'
Conflicts:
	configure.in
	docs/reference/gtk/tmpl/gtkaction.sgml
	docs/reference/gtk/tmpl/gtkbuilder.sgml
	gdk/directfb/gdkkeys-directfb.c
	gdk/gdk.symbols
	gdk/x11/gdkwindow-x11.c
	gtk/gtkalignment.c
	gtk/gtkbox.c
	gtk/gtkbutton.c
	gtk/gtkcelleditable.c
	gtk/gtkfilechooser.c
	gtk/gtkframe.c
	gtk/gtkinvisible.c
	gtk/gtklabel.c
	gtk/gtkscrolledwindow.c
	gtk/gtksearchenginetracker.c
	gtk/gtktextview.c
	gtk/gtktoolbutton.c
	gtk/gtktooltip.c
	gtk/gtkviewport.c
	gtk/gtkwidget.c
	gtk/gtkwindow.c
	po-properties/ca@valencia.po
	po-properties/es.po
	po-properties/kn.po
	po-properties/mr.po
	po/ca.po
	po/ca@valencia.po
	po/el.po
	po/es.po
	po/gl.po
	po/id.po
	po/kn.po
	po/lv.po
	po/mr.po
	po/th.po
2010-04-30 17:56:50 -04:00
Matthias Clasen
1335275548 Add a way to set symbolic colors per-widget
The new function, gtk_widget_modify_symbolic_color() is similar
in spirit to the other gtk_widget_modify_ functions.
2010-04-29 17:01:25 -04:00
Matthias Clasen
6b939d57c7 Support 'symbolic' themed icons
Add gtk_icon_info_load_symbolic() to load symbolic icons, and
theme their background/foreground colours to match the
colours used in the theme.

Adds the gtk_icon_info_load_symbolic() function, explicit
support in GtkImage and GtkCellRendererPixbuf, and test cases
for those 2 widgets.

With help from Bastien Nocera <hadess@hadess.net>

https://bugzilla.gnome.org/show_bug.cgi?id=614711
2010-04-28 12:02:05 +01:00
Mirsal Ennaime
5eaff47e85 Add accessors for GtkTextView adjustments
GtkTextView is missing accessors for its sealed hadjustment
and vadjustment members.
This patch adds gtk_text_view_get_hadjustment() and
gtk_text_view_get_vadjustment() to GtkTextView

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=616053
2010-04-27 02:23:07 +02:00
Emmanuele Bassi
f04a720348 widget: Add send_focus_change()
Currently the only users of the GTK_HAS_FOCUS flag are setting it
before sending a focus change event. This is normally needed by
GtkWindow, but there are widgets that require controlling the focus
of widgets that are semantically their children even though they are
parented to another top-level. Case in point: the quick search entry
for GtkTreeView.

Over the years people have been hacking the focus change out of
gtkwindow.c and gtktreeview.c, thus leaking the direct access of the
GTK_HAS_FOCUS flag.

The simplest way to avoid that is to add a function that sends the
focus change event and controls the setting of the flag, thus removing
the need for external widgets to do the same.

https://bugzilla.gnome.org/show_bug.cgi?id=593671
2010-04-26 18:59:22 +01:00
Tristan Van Berkom
2a5272647d Mega commit backing out everything from the native-layout branch that
is not ready for integration

This commit makes the native-layout branch into a reasonable
patch applicable to git master, it pulls out GtkCellRenderer
support, ComboBox support, the Plug/Socket api is also not ready
and is pulled out.
2010-04-21 03:42:23 -04:00
Tristan Van Berkom
64e23c42bd Fixed GtkLabel reported minimum and natural sizes
This commit makes GtkLabel use "max-width-chars" to determine the
desired natural width for wrapping labels as well as all around refactoring
the initially reported values in get_desired_width/height. this also
addresses some issues with rotating ellipsizing text.
2010-04-17 22:54:29 -04:00
Vincent Untz
9b34203cb6 No accessor for GtkAccessible.widget
Add gtk_accessible_get_widget().

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=612509
2010-04-14 03:49:26 +02:00
Tristan Van Berkom
d2c35ec62a Mega commit to change ->get_desired_size() for ->get_desired_width/height().
This commit changes gtk_extended_layout_get_desired_size() for
per dimension variants. Furthermore this commit reverts the actions
done in size-groups for now as it needs a different approach.

The natural width/height parameters added to aux_info have been changed
for a per width cache for heights and a per height cache for widths.

gtk-demo is still working, currently sizegroups are not taken
into account as mentioned above - size groups need to be alerted both
when the widths and heights are updated independantly and then that
information needs to repropagate also to other extended layout implementors.
2010-04-12 22:21:46 -04:00
Tristan Van Berkom
24950ec144 Added gtk_extended_layout_is_height_for_width()
Added an indicator telling whether a widget prefers to be allocated
as height-for-width or width-for-height. Usually this depends on the
orientation of a container or the nature of a content widget like GtkLabel.

This indicator is only used in the seldom case where a parent is allocating
free space to the child and the child can flow in either direction, GtkWindow
and GtkScrolledWindow are users of this api.
2010-04-10 22:32:55 -04:00
Tristan Van Berkom
36ef655061 Added gtk_cell_view_get_size_of_row() to gtk.symbols 2010-04-08 18:48:42 -04:00
Tristan Van Berkom
7beb83cea4 Add new GtkExtendedCell interface
Added a new interface to extend layout information of GtkCellRenderers,
GtkCellRenderer is a prerequisite of GtkExtendedCellIface and provides
a base implementation of ->get_desired_size() with ->get_size().

Note that the api for GtkExtendedCell differs from GtkExtendedLayout
since the cells need to be passed an additional widget to calculate
sizes contextual to the widget/screen (fonts etc).
2010-04-06 02:59:21 -04:00
Michael Natterer
87334d465c Bug 548026 - No accessor for GtkWidget.requisition
Add gtk_widget_get_requisition().
2010-04-03 20:56:15 -04:00
Matthias Clasen
5438a7b608 Add some more goddamn accessors 2010-04-03 20:56:09 -04:00
Michael Natterer
9dfadca46c Bug 608993 - Add gtk_widget_style_attach()
As replacement for:
widget->style = gtk_style_attach (widget->style, widget->window);
2010-04-03 20:56:05 -04:00
Christian Dywan
21ef8f9ad9 Implement gtk_paned_get_handle_window
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=607885
2010-04-03 20:55:28 -04:00
Michael Natterer
88977f73eb Bug 607778 - Add accessors for GtkEntry's windows
Add gtk_entry_get_text_window() and get_icon_window() so we can
distinguigh them in expose-event callbacks.
2010-04-03 20:55:23 -04:00