Javier Jardón
570b90e218
Use gtk_scrollbar_new() instead gtk_[v|h]scrollbar_new()
2010-10-30 02:26:24 +02:00
Javier Jardón
217036975a
Use gtk_scale_new() instead gtk_[v|h]scale_new()
2010-10-30 02:26:24 +02:00
Javier Jardón
8177ad320e
Use gtk_scale_new_with_range() instead gtk_[v|h]scale_new_with_range()
2010-10-30 02:26:23 +02:00
Javier Jardón
b3a7d401a1
Use gtk_paned_new() instead gtk_[v|h]paned_new()
2010-10-30 02:26:23 +02:00
Javier Jardón
8d008790be
Use gtk_separator_new() instead gtk_[v|h]separator_new()
2010-10-30 02:26:23 +02:00
Javier Jardón
e31304fb7b
Use gtk_button_box_new() instead gtk_[v|h]_button_box_new()
2010-10-30 02:26:23 +02:00
Michael Natterer
8154a5930d
gtk: remove declarations of removed internal functions
2010-10-29 20:24:41 +02:00
Matthias Clasen
b2397d3d7e
Don't set get_preferred_width_for_height to NULL
...
The size request machinery expects that it is non-NULL.
2010-10-29 12:58:24 -04:00
Matthias Clasen
ac3fe174f7
GtkComboBox: Add a constructor that takes a model and adds an entry
...
https://bugzilla.gnome.org/show_bug.cgi?id=633050
2010-10-29 12:28:42 -04:00
Javier Jardón
8b512bd9dd
Re-enable deprecation guards
2010-10-29 05:10:52 +02:00
Matthias Clasen
7da5cd5fe6
ifdef X-specific stuff
...
gdk_x11_ APIs can only be used inside #ifdef GDK_WINDOWING_X11.
2010-10-28 14:27:04 -04:00
Matthias Clasen
7018c2acc7
GtkButtonBox doesn't do height-for-width
...
GtkButtonBox doesn't do height-for-width, therefore we should
explicitly set these methods to NULL instead of hoping that the
inherited GtkBox implementations work ok.
2010-10-28 14:25:50 -04:00
John (J5) Palmieri
a863697784
[introspection] annotate delete_text invoker to match do_delete_text v-method
2010-10-28 13:25:10 -04:00
Ignacio Casal Quinteiro
60feed7360
Remove useless vars.
2010-10-28 11:54:05 +02:00
Tristan Van Berkom
c41ec57fb0
Fire a warning if there are any handlers connected to the deprecated "size-request" signal.
2010-10-28 16:00:19 +09:00
Tristan Van Berkom
18f46adb7d
Added a runtime warning if any class is implementing the ->size_request() vfunc.
2010-10-28 15:41:00 +09:00
Tristan Van Berkom
2f3e51389e
Merge branch 'kill-size-request'
2010-10-28 15:30:32 +09:00
Tristan Van Berkom
7af16e8d91
Make GtkPathBar use set_size_request() instead of the "size-request" signal.
2010-10-28 15:17:06 +09: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
Matthias Clasen
48d0be545c
Fix the build
2010-10-27 13:01:21 -04:00
Matthias Clasen
a84b81d4fe
Fix gtk_fixed_get_preferred_width
...
When dealing with widths, use x, not y.
Spotted by Ignacio Casal Quintero.
2010-10-27 12:53:47 -04:00
Bastien Nocera
94c8390ad7
gtk: Fix crasher when loading symbolic icons
...
If the style didn't include symbolic colors for either success,
warning or error, gtk_icon_info_load_symbolic_for_style() would crash.
Instead, make sure we don't try to use the colors if they're not
available, and fallback on default colors inside
_gtk_icon_info_load_symbolic_internal().
2010-10-27 17:52:30 +01:00
Owen W. Taylor
cb287cde00
GtkSocket: Add error trap around call to XFixesChangeSaveSet()
...
Previously any X error from XFixesChangeSaveSet() was being eaten
by the subsequent error trap when sending a client message. With
asynchronous error traps, that side effect no longer occurs, so
we need to add a proper error trap around the call to
XFixesChangeSaveSet().
https://bugzilla.gnome.org/show_bug.cgi?id=633274
2010-10-27 12:40:59 -04:00
Tristan Van Berkom
d13bf0801d
Revert "Removed size_request from GtkTextView"
...
This reverts commit 87dfa724eb
.
I pushed this to the wrong branch, ouch sorry.
2010-10-28 01:40:51 +09:00
Matthias Clasen
e3bf39b2e6
Remove size_request from GtkSocket
...
This is only preliminary, GtkSocket can do minimal/natural width
properly, there's code for that in the extended-layout branch.
2010-10-27 11:18:47 -04:00
Matthias Clasen
f5207ab647
Don't g_free gslice-allocated structures
...
This was causing memory corruption when removing remote plugs from
sockets.
2010-10-27 11:18:46 -04:00
Matthias Clasen
fb0a72dc0f
Remove size_request from GtkScale
2010-10-27 11:18:46 -04:00
Tristan Van Berkom
a41436c40f
Removed size_request from GtkTearoffMenuItem
2010-10-27 23:59:43 +09:00
Tristan Van Berkom
c33a2b7237
Fixed remaining call to ->size_request in GtkTextView.
2010-10-27 23:34:58 +09:00
Tristan Van Berkom
1132f54dcc
Removing size_request from GtkTextView
2010-10-27 23:25:05 +09:00
Matthias Clasen
8f9807ac15
Remove size_request from GtkSeparatorToolItem
2010-10-27 10:17:58 -04:00
Tristan Van Berkom
87dfa724eb
Removed size_request from GtkTextView
2010-10-27 22:59:49 +09:00
Matthias Clasen
17c1bb4e52
Remove size_request from gtkToolItem
2010-10-27 09:54:44 -04:00
Tristan Van Berkom
7a85a31cc4
Removing size_request from GtkToolPalette
...
Note GtkToolPalette is internally height-for-width, it needs to
be refactored to cooperate with GTK+'s height-for-width geometry
management properly.
2010-10-27 22:51:35 +09:00
Matthias Clasen
1205f5a230
Remove size_request from GtkToolbar
...
This is just a bandaid fix, the toolbar should really return proper
min/natural sizes, so that we can handle the overflow properly.
2010-10-27 09:41:37 -04:00
Matthias Clasen
f7740fe580
Remove size_request from GtkTable
2010-10-27 09:33:41 -04:00
Tristan Van Berkom
add32bab71
Removing size_request from GtkTreeview.
...
This should be implemented as propery height-for-width by
the treeview-refactor branch. This commit includes a FIXME
comment that scroll adjustments should not be updated from
inside size requests but only after receiving an allocation.
2010-10-27 22:28:41 +09:00
Matthias Clasen
1184295620
Remove size_request from GtkRuler
2010-10-27 09:23:07 -04:00
Matthias Clasen
fc081e7847
Remove size_request from GtkPathBar
2010-10-27 09:13:26 -04:00
Matthias Clasen
7947f1933e
Remove size_request from GtkSeparator
2010-10-27 08:33:42 -04:00
Matthias Clasen
d95f8ae2e2
Remove size_request from GtkRange
2010-10-27 08:10:40 -04:00
Matthias Clasen
2b728f66a8
Fix a typo
2010-10-27 07:57:19 -04:00
Matthias Clasen
9b60d27b83
Remove size_request from GtkPaned
...
This is not the final word; GtkPaned should really implement
height-for-width, but I didn't have time to complete that now.
2010-10-27 07:55:27 -04:00
Tristan Van Berkom
80ac6c9701
Removed size_request from GtkOffscreenWindow
2010-10-27 14:43:30 +09:00
Tristan Van Berkom
9a80908c91
Removed size_request from GtkNotebook
2010-10-27 14:35:04 +09:00
Tristan Van Berkom
2dca7ad91d
Removed size_request from GtkMenuBar
2010-10-27 14:30:07 +09:00
Tristan Van Berkom
c8c3cf9beb
Removed size_request from GtkImageMenuItem
2010-10-27 14:12:41 +09:00
Tristan Van Berkom
814cd2c3ff
Removed size_request from GtkIconView.
2010-10-27 14:11:36 +09:00
Tristan Van Berkom
7e3e0636aa
Remove size_request from GtkHandleBox
2010-10-27 13:56:46 +09:00
Tristan Van Berkom
393bd507bb
Fixed unused variable in get_preferred_height().
2010-10-27 13:56:13 +09:00
Matthias Clasen
ac1bb229d1
Remove size_request from GtkSpinButton
2010-10-26 23:46:06 -04:00
Matthias Clasen
e45e9b187b
Remove size_request from GtkProgressBar
2010-10-26 23:30:48 -04:00
Matthias Clasen
4ca87168d4
Remove size_reuqest from GtkImage
2010-10-26 23:16:40 -04:00
Matthias Clasen
86cb8d02d3
Remove size_request from GtkLayout
2010-10-26 23:08:15 -04:00
Matthias Clasen
909a005cb2
Remove size_request from GtkHSV
2010-10-26 23:08:01 -04:00
Matthias Clasen
58354f2036
Remove size_request from GtkFixed
2010-10-26 23:07:56 -04:00
Matthias Clasen
2432bf4a58
Remove size_request from GtkEntry
2010-10-26 21:41:13 -04:00
Matthias Clasen
3bb3dc72e3
Remove size_request from GtkCheckButton
2010-10-26 21:29:58 -04:00
Matthias Clasen
f85543af98
Remove size_request from GtkCalendar
2010-10-26 21:06:40 -04:00
Matthias Clasen
8178e6016a
Remove size_request from GtkButtonBox
2010-10-26 20:57:40 -04:00
Matthias Clasen
d08e8aac62
Remove size_request from GtkAssistant
2010-10-26 20:57:23 -04:00
Javier Jardón
e0e6d5b4df
Fix gtk-doc markup: /* <private> */ should be /*< private >*/
2010-10-26 18:35:04 +02:00
Matthias Clasen
b69232e51b
Stop calling GtkWidget parameters 'request'
...
There were at least a few places where we were using GTK_WIDGET()
on something that was already a GtkWidget*, just because it was
named wrong.
2010-10-26 10:53:46 -04:00
Xan Lopez
9c7016ab87
gtkcomboboxtext: remove unused variable
2010-10-26 15:18:35 +09:00
Javier Jardón
5aea672e00
gtk.symbols: Add scrollable policy API
2010-10-26 06:07:43 +02:00
Javier Jardón
8dd7ae38f9
gtkfilechooserentry: Use accessor functions to access GtkEntry
2010-10-26 06:07:43 +02:00
Javier Jardón
0b72acf78d
gtkspinbutton: Use accessor functions to access GtkEntry
2010-10-26 06:07:42 +02:00
Javier Jardón
f5615022a7
Use accessor functions to access GtkButton
2010-10-26 06:07:42 +02:00
Javier Jardón
8991603c88
gtktogglebutton: move public members to private structure
2010-10-26 06:07:42 +02:00
Javier Jardón
49446ed57c
gtktogglebutton: Add _gtk_toggle_button_set_active private accessor
...
It's needed by gtkradiobutton
2010-10-26 06:07:42 +02:00
Javier Jardón
a93e79f8d2
gtkradiobutton: Use accessor functions to access GtkToggleButton
2010-10-26 06:07:42 +02:00
Javier Jardón
783d18650b
gtkcheckbutton: Use accessor functions to access GtkToggleButton
2010-10-26 06:07:42 +02:00
Javier Jardón
356cfaa084
gtktoggletoolbutton: Use accessor functions to access GtkToggleButton
2010-10-26 06:07:42 +02:00
Tristan Van Berkom
3fe0fb4ed9
Added GtkScrollablePolicy property to scrollable interface
...
This patch adds the GtkScrollablePolicy type property to GtkScrollable
and implements it in all subclasses. GtkScrolledWindow observes this
property to make a good guess about when to show/hide scrollbars for
height-for-width content.
Most scrollable children do not do height-for-width *yet* but
most certainly will (toolpalette, treeview, iconview, textview
widgets all TODO), for scrollable widgets that do have a minimum
and natural size, it's important for them to observe the state
of this property in order to properly drive the scroll adjustments
according to the desired GtkScrollablePolicy. This patch makes
GtkViewport do this.
Patch also adds tests/testscrolledwindow.c to display the effects
of this property.
2010-10-26 10:15:56 +09:00
Matthias Clasen
c406b6ed22
Add new GdkRGBA apis to gtk.symbols
2010-10-25 13:49:37 -04:00
=Christian Persch
d3f1745493
Use g_ascii_strto[u]ll instead of strto[u]l
...
We don't want GtkBuilder input to be locale-dependent.
Bug #632503
2010-10-25 12:22:20 -04:00
Matthias Clasen
503698f587
Support resetting cell renderer colors with NULL again
...
This functionality was lost when GdkRGBA was introduced.
Bug 632936
2010-10-25 11:17:24 -04:00
Matthias Clasen
52a7553b2c
GtkCalendar: turn into a no-window widget
...
After these changes, GtkCalendar only has a few input-only windows
left for catching input events. All drawing goes to the parent
window now.
2010-10-24 14:43:05 -04:00
Matthias Clasen
520a6aeb8f
Fix up docs
2010-10-23 23:41:08 +02:00
Matthias Clasen
1be9b7f782
Some GtkApplication cleanups
...
Remove no-longer-needed vfuncs, no longer existing functions,
and improve the docs here and there.
2010-10-23 21:24:24 +02:00
Matthias Clasen
7651c231e0
Revert the id-column patch
...
It didn't quite turn out as I wanted it.
I'll put it in bug 619148 for now.
2010-10-23 19:34:20 +02:00
Tristan Van Berkom
051dcde4bf
Fixed fallout from GtkScrollable patches.
...
The scrollable patch removed set_scroll_adjustments (NULL, NULL) from
gtk_tree_view_init() which ensured the treeview would have adjustments
at all times, this patch adds set_v/hadjustment (NULL) to _init to ensure
the same thing (without it, there are crashes when trying to access the
adjustments notably from set_headers_visible() in gedit).
2010-10-23 22:53:06 +09:00
Tristan Van Berkom
ed63ae2bd3
Fixed push/pop_recursion_check() to not fire warnings for expected code.
...
I.e. Since we are now calling get_preferred_width() to ensure a good 'for_size'
for get_height_for_width() we need to avoid warning about this internal expected
recursion.
2010-10-23 20:03:41 +09:00
Javier Jardón
0dd5eb4b61
docs: GtkComboBoxText: more fixes
2010-10-23 03:03:50 +02:00
Javier Jardón
d94adcf643
docs: Some fixes in GtkComboboxText notations
2010-10-23 03:01:35 +02:00
Matthias Clasen
a94db5b3b9
Fix distcheck
2010-10-23 02:31:30 +02:00
Matthias Clasen
9fb36fff36
Add a way to associate numeric ids with combobox values
...
This will let us use combo boxes as property editors for
GSettings enmerations easily.
2010-10-23 02:31:30 +02:00
Javier Jardón
38dbb84095
gtkadjustment: Move documentation to inline comments
2010-10-23 00:31:37 +02:00
Javier Jardón
96f2f2ff5b
gtkscrollbar: Move documentation to inline comments
2010-10-23 00:31:37 +02:00
Javier Jardón
ec0c739520
gtktreemodelfilter: Move documentation to inline comments
2010-10-23 00:31:37 +02:00
Javier Jardón
8d3b36d534
gtktreeselection: Move documentation to inline comments
2010-10-23 00:31:37 +02:00
Javier Jardón
e51daa79fe
gtktreesortable: Move documentation to inline comments
2010-10-23 00:31:37 +02:00
Javier Jardón
16cf23959f
gtktreeviewcolumn: Move documentation to inline comments
2010-10-23 00:31:36 +02:00
Javier Jardón
8f766d36f4
gtktreestore: Move documentation to inline comments
2010-10-23 00:31:36 +02:00
Carlos Garnacho
d2781bc74b
GtkBuilder: Prepare for parsing GdkRGBA types.
2010-10-22 20:14:57 +02:00
Carlos Garnacho
d1140d0b1e
GtkCellRendererText: Add [foreground|background]-rgba properties
...
These properties use GdkRGBA to render the cell renderer's content.
Note that Pango attributes are used to render the foreground color,
so the alpha value is currently ignored.
2010-10-22 20:14:57 +02:00
Carlos Garnacho
5fbf20c2d8
GtkCellRenderer: Add ::cell-background-rgba property
...
This property uses GdkRGBA in order to render the cell renderer's
background.
2010-10-22 20:14:57 +02:00
Carlos Garnacho
1bbbd005a4
GtkColorButton: Add API to deal with GdkRGBA.
2010-10-22 20:14:57 +02:00
Carlos Garnacho
cb5b74e9c6
GtkColorSelection: Add API to deal with GdkRGBA.
...
The hook to change the global palette is still unchanged, it is quite
tied to GdkColor and the color format used to store the palette in
GtkSettings.
2010-10-22 20:14:56 +02:00
Carlos Garnacho
e351a48d6a
Make gtk_icon_info_load_symbolic() Take GdkRGBA colors.
2010-10-22 20:14:56 +02:00
Carlos Garnacho
684c9415ee
GtkCellView: Add gtk_cell_view_set_background_rgba()
...
A ::background-rgba property was also added, this API is meant
to replace the gtk_cell_view_set_background_color() call.
2010-10-22 20:14:56 +02:00
Matthias Clasen
c750003168
Point to GtkGrid from the GtkBox and GtkTable docs
2010-10-22 19:59:29 +02:00
Matthias Clasen
09ec50af90
Remove GtkScrollablePolicy again
...
This was a miscommunication, the properties need to live elsewhere.
2010-10-22 19:24:03 +02:00
Matthias Clasen
0d9ebb501d
Move min-display-width/height to GtkScrolledWindow
...
It is just too annoying to have to implement these properties in
every scrollable. Instead, we now have ::min-content-height/width
in GtkScrolledWindow.
We also add GtkScrollablePolicy to determine how to size the
scrollable content.
2010-10-22 19:21:17 +02:00
Emmanuele Bassi
ce5a29bc38
recent-manager: Coalesce multiple changes
...
Since the ::changed implementation of GtkRecentManager implies a
synchronous write operation, when we receive multiple requests to emit a
::changed signal we might end up blocking.
This change coalesces multiple ::changed emission requests using the
following sequence:
• the first request will install a timeout in 250 ms, which will
emit the ::changed signal
• each further request while the timeout has not been emitted
will increase a counter
‣ if the counter reaches 250 before the timeout has been
emitted, then the RecentManager will remove the timeout
source and force a signal emission and reset the counter
This sequence should guarantee that frequent ::changed emission requests
are coalesced, and also guarantee that we don't let them dangle for too
long.
https://bugzilla.gnome.org/show_bug.cgi?id=616997
2010-10-22 18:08:48 +01:00
Christian Dywan
5ef2b46d64
Don't declare various unused variables in gtk_grid_set_orientation
2010-10-22 19:05:40 +02:00
Alberto Garcia
d6a73fd5b0
Assign all g_signal_connect() and friends to gulong variables
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=87821
2010-10-22 18:58:47 +02:00
Javier Jardón
56d5b45443
GtkExpander: avoid use of gtk_get_event_widget()
...
We can compare the window to the window instead of the widget to the widget.
2010-10-22 18:21:44 +02:00
Javier Jardón
8999053b5f
docs: Add gtk-doc notation
...
to emphasize that GtkMisc and GtkAdjustment are not encouraged in new code
2010-10-22 17:59:38 +02:00
Michael Natterer
1f77384ab3
gtk: undef DISABLE_DEPRECATED around including our own header
...
so we can see our own deprecated API and don't get warnings.
2010-10-22 17:10:49 +02:00
Michael Natterer
3dc1f09772
gtk: use the new scrollable API to get to the scroll adjustments
2010-10-22 17:10:49 +02:00
Tristan Van Berkom
d26ac6421b
Fixed problems with combination of height-for-width apis and
...
alignment/margin vfuncs adjust_size_request/allocation
Now get_height_for_width() will internally update the for_width
before passing it to the real height_for_width() vfunc, allowing
margins and extra space for alignments to be stripped, thus requesting
sufficient height for greater than natural widths (and also accounting
for margins properly). Test case adjusted in testadjustsize to ensure
proper behavior.
2010-10-23 00:11:37 +09:00
Michael Natterer
a46dec176e
gtk: use the new scrollable API to get scroll adjustments
2010-10-22 17:03:21 +02:00
Michael Natterer
8e7aed9489
gtk: fix tool palette scroll adjustment setting
...
Create a new adjustment if there was *no* adjustment passed in, not
the other way around. Also remove unused function
gtk_tool_palette_set_adjustment().
2010-10-22 17:01:58 +02:00
Michael Natterer
6d2e4c26bd
gtk: return 0 not NULL from functions returning gint
2010-10-22 16:54:45 +02:00
Matthias Clasen
8cd13d09e8
Discourage use of GtkMisc and GtkAlignment
2010-10-22 16:52:08 +02:00
Matthias Clasen
a9204e65dd
Remove child flipping from GtkGrid
...
We decided that this is not really the right thing to do, for one
thing, because it doesn't flip ::expand and ::margin properties
of children.
2010-10-22 16:43:45 +02:00
Matthias Clasen
8f0ae8e8a3
Add GtkGrid
...
GtkGrid is a container similar to GtkTable, without legacy
properties and unnecessary restrictions.
It does height-for-width geometry management.
2010-10-22 16:42:50 +02:00
Matthias Clasen
c10127156f
Make the docs build
2010-10-22 16:42:50 +02:00
Matthias Clasen
a7465c3479
Fix a typo
2010-10-22 16:42:50 +02:00
Michael Natterer
ba9efeda4b
gtk: add gtk_entry_get_text_area() and gtk_entry_get_icon_area()
...
as replacement for the removed get_foo_window() functions, so draw()
callbacks can figure where to paint.
2010-10-22 14:48:08 +02:00
Christian Persch
95610f2a14
recent-chooser: Use gtk_recent_info_get_gicon()
...
https://bugzilla.gnome.org/show_bug.cgi?id=617174
2010-10-22 12:20:55 +01:00
Christian Persch
b0fe3e49bb
Add gtk_recent_info_get_gicon()
...
https://bugzilla.gnome.org/show_bug.cgi?id=617174
2010-10-22 11:58:00 +01:00
Emmanuele Bassi
27b71e0143
recent-manager: Fix the documentation
...
The default RecentManager is not destroyed at the end of the process.
https://bugzilla.gnome.org/show_bug.cgi?id=602794
2010-10-22 11:54:53 +01:00
Emmanuele Bassi
03fc0dd5ca
recent-manager: Add RecentInfo.create_app_info()
...
A simple wrapper that makes it possible to create a GAppInfo from a
GtkRecentInfo blob.
2010-10-22 11:54:53 +01:00
Emmanuele Bassi
06758f1ab5
recent-manager: Move the file under XDG_USER_DATA
...
Do not use $HOME/.recently-used.xbel any more. No migration path is
included: we're breaking API anyway.
https://bugzilla.gnome.org/show_bug.cgi?id=524304
2010-10-22 11:53:09 +01:00
Tadej Borovšak
55196a705f
Add GtkScrollable interface
...
The GtkScrollable interface provides "hadjustment" and "vadjustment"
properties that are used by GtkScrolledWindow. It replaces
the ::set_scroll_adjustment signal. The scrollable interface
also has ::min-display-width/height properties that can be
used to control the minimally visible part inside a scrolled window.
2010-10-22 11:03:45 +02:00
Tristan Van Berkom
86b3c1b65e
Enhanced GtkWidget documentation with regards to height-for-width geometry management.
2010-10-21 22:53:06 +09:00
Benjamin Otte
5e8baa5f63
container: Fix typo that caused madness
...
Interestingly, this typo has been causing madness since 2 months, but
Mitch complained only today.
2010-10-21 15:31:07 +02:00
Benjamin Otte
e6f95e9316
entry: No, you can not haz ununused variables
2010-10-21 15:08:14 +02:00
Christian Dywan
5862075e9d
comboboxtext: Add gtk_combo_box_text_remove_all()
...
https://bugzilla.gnome.org/show_bug.cgi?id=324899
2010-10-21 14:30:11 +02:00
Benjamin Otte
707d05bac0
progressbar: Remove declaration of nonexisting function
2010-10-21 14:30:11 +02:00
Benjamin Otte
715f57790b
socket: Fix compiler issues
2010-10-21 14:30:11 +02:00
Matthias Clasen
596da84312
Make GtkEntry a no-window widget
...
Use input-only windows for capturing input, and just draw onto
the parent window. This allows themes to make entries with rounded
corners. Patch by Boram Park.
https://bugzilla.gnome.org/show_bug.cgi?id=632736
2010-10-21 13:17:33 +02:00
Michael Natterer
e4654327df
gtk: change GtkIconView to "support" actual trees
...
Remove the check for GTK_TREE_MODEL_LIST_ONLY and make the view
display only the first level of the tree, ignoring all insert, remove
etc. events on the model's branches. This enables generic application
code which always produces GtkTreeStores (also for flat lists) to
display grids of these flat trees.
2010-10-21 12:57:55 +02:00
Matthias Clasen
331323e5c7
Make GtkSpinButton a no-window widget
...
We still retain an input-only window here for now, but all
the painting is done to the parent window.
2010-10-21 11:41:20 +02:00
Matthias Clasen
f4d57dbe98
Make GtkProgressBar a no-window widget
...
It doesn't really have a good reason for having a window.
2010-10-21 11:40:46 +02:00
Matthias Clasen
0a3fa74a52
Properly propagate expand flags
...
When showing a widget that already has need_compute_expand set,
we need to queue the recomputation on the parent.
2010-10-21 11:14:26 +02:00
Ryan Lortie
c7e1f567b6
GtkButton: avoid use of gtk_get_event_widget()
...
We can compare the window to the window instead of the widget to the
widget.
2010-10-21 00:37:29 +02:00
Ryan Lortie
56d2590b49
GtkIMContextSimple: avoid gdk_window_get_user_data
...
We lookup a widget to call a function on GtkWidget that ends up just
performing an operation directly on the GdkWindow again anyway
(beeping). There's already fallback code at the point of the call that
does exactly that anyway, so just do that all of the time.
2010-10-20 23:58:20 +02:00
Javier Jardón
3fcec464ac
gtk.symbols: Add missing GtkApplication api
2010-10-20 20:46:48 +02:00
Michael Natterer
c2f29f2cef
gtk: clean up GtkWidget signals
...
- add slots for damage-event, move-focus and keynav-failed
- reorder signals a bit so related stuff is grouped together
- some indentation fixes in the GtkWidgetClass
- remove the move-focus compat hack from GtkTextView
- turn the move-focus compat hack in GtkWindow into properly
implementing GtkWidget::move-focus()
2010-10-20 17:02:38 +02:00
Emmanuele Bassi
ef9a6f205c
Re-add copyright notice
...
https://bugzilla.gnome.org/show_bug.cgi?id=632677
2010-10-20 12:05:23 +01:00
Emmanuele Bassi
2cc059a0e7
Split off gtkprivate.h
...
The gtkprivate.h header contains GtkWidget-specific private symbols that
are not useful except in a handful of cases. Basically everything
includes gtkprivate.h for the GTK_PARAM_* macros.
https://bugzilla.gnome.org/show_bug.cgi?id=632539
2010-10-20 10:34:26 +01:00
Emmanuele Bassi
9b34bf17e5
build: Do not install gtkprivate.h
...
This is a private header file, and it should *not* be installed. It
should also not be scanned by the introspection machinery.
https://bugzilla.gnome.org/show_bug.cgi?id=632539
2010-10-20 10:34:25 +01:00
Emmanuele Bassi
9f9edb662e
settings: Move setting property registration in gtksettings.c
...
Some GtkSettings property are registered by other classes. This leads
to the "interesting" issue that setting GtkSettings:gtk-button-images
requires that the GtkButton class is referenced first - or that a
GtkButton is created.
https://bugzilla.gnome.org/show_bug.cgi?id=632538
2010-10-20 10:34:25 +01:00
Javier Jardón
9f035742e3
gtkapplication: fix docs
2010-10-20 11:07:11 +02:00
Matthias Clasen
0219eea4d7
Remove GtkComboBoxEntry and the combo box text api
2010-10-20 11:02:03 +02:00
Ryan Lortie
c5ebb61b6f
GtkApplication: add gtk_application_get_windows()
...
Return a GList of the GtkWindow objects for each window that has the
application set as its "application" property.
2010-10-19 21:10:02 +02:00