Thomas Wood
a9b778931c
GtkCalendar: some functions always return TRUE, so change them to void
...
Certain functions for GtkCalendar always return the same value. Therefore
they do not actually need to return a value at all.
Bug #621136 .
(cherry picked from commit e19c50b538
)
2010-06-26 14:03:32 -04:00
Paolo Borelli
ace3ea4a89
Annotate the methods to get TextBuffer iters
...
(cherry picked from commit cf14d4f368
)
2010-06-26 14:03:00 -04:00
John (J5) Palmieri
95b7dca983
annotate gtk_color_selection_get_current_color color param as out
...
(cherry picked from commit 76db7d69f1
)
2010-06-26 13:53:15 -04:00
Matthias Clasen
cb29d27707
Make GTK+ build against an external gdk-pixbuf
2010-06-26 02:29:29 -04:00
Matthias Clasen
fa7ace866c
Fix the build
...
Forgot to update callers of _gtk_window_group_get_current_grab.
2010-06-24 13:06:29 -04:00
Javier Jardón
7d6d1af7a1
[docs] Fix annotations: "(allow-none): (out)" -> "(out) (allow-none)"
2010-06-24 18:13:17 +02:00
Javier Jardón
022f88a6ac
[GtkTable] Add gtk_table_get_size()
...
Add accessor function to retrieve the number of rows and columns
in the table.
2010-06-24 17:49:30 +02:00
Matthias Clasen
5c93288199
Make gtk_window_group_get_current_grab public
...
See bug #620832 .
2010-06-24 11:21:29 -04:00
Javier Jardón
c0c4ab0946
[gtk] Add gtk_font_selection_dialog_get_font_selection()
...
This is needed to access the fontsel sealed member.
2010-06-23 01:38:36 +02:00
Javier Jardón
a39c3b43b2
[test] Exclude message-area as it's a object property
2010-06-22 22:46:29 +02:00
Javier Jardón
8ceef86cf8
Add new api to gtk.symbols
...
Add newly added api gtk_accessible_set_widget() and
gtk_message_dialog_get_message_area()
2010-06-22 21:52:48 +02:00
Javier Jardón
200896e9b9
Use the correct guards in gtk_accessible_set_widget()
...
Also, allow the widget variable to be NULL
2010-06-22 21:13:41 +02:00
Federico Mena Quintero
ce504e2217
bgo#328069 - Add gtk_message_dialog_get_message_area()
...
Signed-off-by: Federico Mena Quintero <federico@novell.com>
2010-06-22 13:10:52 -05:00
Vincent Untz
49943be22b
bgo#622371 - Add gtk_accessible_set_widget() - the widget field was GSEAL()ed.
...
https://bugzilla.gnome.org/show_bug.cgi?id=622371
2010-06-22 12:22:38 -05:00
Yaakov Selkowitz
6922490fa5
Do not dist gir_DATA
...
GIR files contain a shared-library attribute which varies per platform,
and therefore must not be disted; see bug 621611 for rationale.
https://bugzilla.gnome.org/show_bug.cgi?id=621719
2010-06-20 08:26:26 +02:00
Matthias Clasen
cbb01e6063
Prevent concurrent use of GTK+ 2 and 3
...
If we detect a gtk3-only symbol, error out early.
2010-06-18 22:40:50 -04:00
Javier Jardón
606180b746
Deprecate GTK_OBJECT_FLAGS() and GtkObjectFlags enum
...
This macro will be moved to a private header in GTK+3.
https://bugzilla.gnome.org/show_bug.cgi?id=615666
2010-06-16 20:50:29 +02:00
Benjamin Otte
a8e3ce6bb4
Can't select file on file browser after changing sort order
...
The row values are 1-indexed not 0-indexed, this has to be taken into
account when producing the new_order array.
https://bugzilla.gnome.org/show_bug.cgi?id=621414
2010-06-16 12:41:40 +02:00
Benjamin Otte
6138f23f5b
Make declaration return a boolean when the function does that
2010-06-16 11:54:41 +02:00
Johan Dahlin
05dad359e7
[gtktreeview] Add a couple of annotations
...
(cherry picked from commit 5c283cacbe
)
2010-06-10 09:11:40 -04:00
Cosimo Cecchi
54e959ef96
Add an accessor for GtkViewport->view_window ( #621081 ).
2010-06-09 18:23:20 +02:00
Steve Frécinaux
1a00cb9df5
[gtkwidget] Add type annotations for the event signals.
2010-06-08 22:38:40 +02:00
Benjamin Otte
af7f95207e
menu: Fix wrong comparison causing navigation region to not get removed
...
The navigation region that got created for right-facing submenus when
moving the cursor up would have two negative values which caused the
check to go wrong.
I refactored the code to make that check into a separate function as it
makes the check not only harder to get wrong, but also the code easier
to read.
http://bugzilla.gnome.org/show_bug.cgi?id=620863
2010-06-08 21:56:28 +02:00
Federico Mena Quintero
4acbc2fdb0
bgo#608537 - Make the file chooser's sort arrows consistent with the HIG
...
... Although I think the HIG gets things backwards anyway.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
2010-06-08 12:11:00 -05:00
John (J5) Palmieri
3b50f22873
add transfer-none to return value of gtk_widget_get_window
2010-06-07 18:38:21 -04:00
Steve Frécinaux
88dbf5cabf
[gtktextbuffer] Annotate gtk_text_buffer_create_mark()
...
Add (transfer none) to the return value of gtk_text_buffer_create_mark(),
as the documentation clearly states the caller doesn't have ownership of
the returned value.
2010-06-08 00:04:26 +02:00
John (J5) Palmieri
1bd94d731b
annotate allow-none for gtk_image_menu_item_new_from_stock accel_group param
2010-06-07 16:17:31 -04:00
John (J5) Palmieri
5ac10f45f1
add allow-none annotation to gtk_clipboard_set_can_store's targets parameter
2010-06-07 13:20:01 -04:00
Stanislas Marquis
f14fc8bc37
[docs] Fix GtkWindow: activate-default => activate-focus.
...
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-06-05 00:47:16 +02:00
Javier Jardón
e4ece66c9c
gtktoolshell: Fix some "Since" tags
...
get_ellipsize_mode(), get_text_alignment(), get_text_orientation()
and get_text_size_group() were added in GTK+ 2.20, not 2.14.
Reported by Stanislas Marquis on IRC.
2010-06-04 17:55:38 +02:00
Matthew Barnes
01e2fc5b5a
Bug 596428 - GtkAssistant: Support ending with a progress page
...
- Add gtk_assistant_commit()
This function discards the visited pages list so the back button is not
shown on the current page, and removes the cancel button from subsequent
pages. Use this when information provided thus far cannot be revisited.
- Don't show the Forward button on a GTK_ASSISTANT_PAGE_PROGRESS if it's
the last page (according to the forward page function).
- Append a progress page to the GtkAssistant demo.
2010-06-03 17:27:34 -04:00
Garrett Regier
75e48d68bc
Bug 611709 - Add gtk_statusbar_remove_all
2010-06-02 17:57:25 +02:00
Matthias Clasen
4451536712
Fix the build
...
One hunk got lost when cherry-picking the icon view keynav changes.
2010-05-30 02:56:16 -04:00
Sebastian Dröge
39f3d5e182
Don't include __bss_start, _edata and _end symbols in the abichecks
...
They are added by the binutils gold linker.
2010-05-30 02:26:32 -04:00
Javier Jardón
6abc512298
Fix typo in gtkprintoperation
...
Reported by Andika Triwidada in
https://bugzilla.gnome.org/show_bug.cgi?id=618093
(cherry picked from commit 7b2024c1bd
)
2010-05-30 02:22:09 -04:00
Matthias Clasen
5cededa0aa
Improved icon view keynav
...
Use ::keynav-failed for arrow navigation in icon views, so that
it is possible to override error handling. Also add API to get the
row/col of an item. With this, it is possible to make arrow keynav
span adjacent icon views, which is desired in the new control-center
shell. testiconview-keynav demonstrates this.
2010-05-30 02:19:50 -04:00
Michael Natterer
cb8c076321
Bug 607628 - DnD operation doesn't work when using offscreen
...
Changed the way to find the drop widget from a top->bottom recursion
using GdkWindow positions to a liner bottom->top walk up the widget
hierarchy using _gtk_widget_find_at_coords() and
gtk_widget_translate_coordinates(), which both do the right things for
offscreen widgets.
2010-05-29 05:04:54 +02:00
John (J5) Palmieri
3e16fd9967
gtk_tree_selection_get_selected: added transfer none annotation to model out arg
2010-05-27 18:38:18 -04:00
John (J5) Palmieri
84e9c08a40
gtk_tree_view_get_model: return value annotated transfer none
2010-05-27 17:00:51 -04:00
John (J5) Palmieri
e89187fc87
annotation fixes
...
* gtk_tree_model_get_column_type: transfer none added to the return value
* gtk_tree_model_get_path: value parameter switched from inout to out
so that it is annotated with caller-allocates
2010-05-27 17:00:31 -04:00
Javier Jardón
b0359fb944
Deprecate GTK_NO_REPARENT
2010-05-27 19:19:07 +02:00
Michael Natterer
c4b1bbf3e2
Bug 607628 - DnD operation doesn't work when using offscreen
...
Turn find_widget_under_pointer() into internal API
_gtk_widget_find_at_coords() which is needed for fixing above
bug. This should actually be a public utility function, and will be
moved to another file when its final API has been decided.
2010-05-26 17:15:39 +02:00
Carlos Garcia Campos
4acc2716cb
GtkWindow: Add gtk_window_has_group()
...
To check whether the window has an explicit group
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=618271
2010-05-26 17:01:01 +02:00
Benjamin Otte
fd20ac0751
Revert "Deprecate the GdkRegion API"
...
This reverts commit 821dd33918
.
2010-05-26 09:25:35 +02:00
John (J5) Palmieri
15037df282
add a transfer none annotation to gtk_tree_view_get_selection
...
* it returns the selection from its priv structure without reffing
2010-05-25 11:51:27 -04:00
Benjamin Otte
821dd33918
Deprecate the GdkRegion API
...
Includes fixing all callers to use the cairo region API instead. This is
usually just replacing the function names, the only difference is
gdk_region_get_rectangles() being replaced by
cairo_region_num_rectangles() and cairo_region_get_rectangle() which
required a bit more work.
https://bugzilla.gnome.org/show_bug.cgi?id=613284
2010-05-23 23:27:15 +02:00
Benjamin Otte
43091232a2
Get rid of navigation region in GtkMenu
...
This completes the move to get rid of using a GdkRegion for the
navigation region and the only user of gdk_region_polygon(). We keep
track of the triangle and compute in/out points ourselves now.
Unfortunately the DRAW_STAYUP_TRIANGLES debugging code doesn't work
using cairo, so I removed it completely.
2010-05-23 22:51:55 +02:00
Benjamin Otte
239cfddc97
Create the navigation region without flipping
...
Gets rid of some code in preparation to switching to do the computation
completely without GdkRegion.
2010-05-23 21:06:24 +02:00
Matthias Clasen
ef2dc17256
Deprecate GtkBoxChild
...
This was discussed in bug 613132.
Conflicts:
gtk/gtkbox.h
2010-05-22 00:18:16 -04:00
Marek Kasik
8cd4c387f0
Update list of US Letter locales
...
Sync paper size fallbacks with the latest 1.8.1 CLDR table (#618000 ).
2010-05-21 12:14:30 +02:00
Jan Arne Petersen
96986af5b4
GtkRange: Redraw if GtkRange is a GtkScale and value is drawn.
...
* gtk/gtkrange.c: (gtk_range_adjustment_value_change):
Queue the draw also if the range is a scale and the value is drawn,
fixing bug #533946 (Markus Brinkmann), when two HScales use one
adjustment.
2010-05-18 08:54:57 +02:00
Kristian Rietveld
42664a22cf
Bug 565559 - Incorrect leave-notify signals for treeview
...
Set enter and leave notify mask on header window.
Extract from a patch by Hans van Hintum.
2010-05-12 12:20:18 +02:00
Matthias Clasen
1fb1f6a7b1
Correct a Since: tag
2010-05-07 13:34:36 -04:00
Javier Jardón
489657f305
Use event instead key in the previous patch
2010-05-05 04:08:23 +02:00
Javier Jardón
fc35cd9bfe
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:16:15 +02:00
Benjamin Otte
bd873014ca
filechooser: Fix a crash when removing files
...
The file removal code was not properly clearing the file=>array index
cache, so later lookups into that cache would return invalid array
indexes.
The easiest way to reproduce it is to create a directory with two files
and deleting both of them.
Reported-by: Javier Jardón <jjardon@gnome.org>
2010-05-02 14:36:53 +02:00
Javier Jardón
3cc9575323
Move documentation to inline comments: GtkHBox
2010-04-28 04:29:41 +02:00
Javier Jardón
a6ed128abf
Move documentation to inline comments: Testing utilities
2010-04-28 04:20:10 +02:00
Javier Jardón
1e2dabf31d
Allow NULL as 'icon_widget' in gtk_tool_button_new()
...
This completes the patch of
commit b8ec73a52f
2010-04-27 03:26:11 +02:00
Javier Jardón
d3d4cf0e84
Deprecate GTK_WIDGET_*SET_FLAGS() macro
...
The macro GTK_WIDGET_SET_FLAGS(w, GTK_VISIBLE) should
still be fixed internally.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-27 02:45:18 +02: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
Javier Jardón
41a073263a
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_HAS_DEFAULT)
...
Introduce internal _gtk_widget_set_has_default() for this
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=614515
2010-04-26 21:10:15 +02:00
Javier Jardón
45257e31c7
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_TOPLEVEL)
...
Introduce internal _gtk_widget_set_is_toplvel() for this
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=614510
2010-04-26 21:07:20 +02:00
Javier Jardón
560e426f16
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_HAS_GRAB)
...
Introduce internal _gtk_widget_set_has_grab() for this
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=614513
2010-04-26 21:04:51 +02:00
Javier Jardón
b8ec73a52f
Only a GtkMisc widget should be passed to gtk_tool_button_new()
...
Reported by Hernando Torque here:
https://bugzilla.gnome.org/show_bug.cgi?id=616851
2010-04-26 20:23:39 +02:00
Emmanuele Bassi
621b415e5b
tree-view: Use gtk_widget_send_focus_change()
...
Remove the second (and last) internal user of the GTK_HAS_FOCUS flag.
https://bugzilla.gnome.org/show_bug.cgi?id=593671
2010-04-26 18:59:24 +01:00
Emmanuele Bassi
91930f86b2
window: Use gtk_widget_send_focus_change()
...
Remove the original user of the GTK_HAS_FOCUS flags.
https://bugzilla.gnome.org/show_bug.cgi?id=593671
2010-04-26 18:59:23 +01: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
Javier Jardón
95fd5011c2
Move documentation to inline comments: GtkMessageDialog
...
Also, add a note about GTK_BUTTONS_OK, GTK_BUTTONS_YES_NO
and GTK_BUTTONS_OK_CANCEL are discouraged by the GNOME HIG.
https://bugzilla.gnome.org/show_bug.cgi?id=597865
2010-04-21 05:57:29 +02:00
Javier Jardón
508ed4bbab
[docs] Move documentation to inline comments: GtkArrow
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611957
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-18 17:59:53 +02:00
Steven Harms
c3d5faf6b7
[docs] Move documentation to inline comments: GtkVButtonBox
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611833
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-18 08:54:40 +02:00
Tadej Borovšak
5f767e2c48
[docs] Move documentation to inline comments: GtkAssistant
...
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-18 08:02:03 +02:00
Tadej Borovšak
51e32fe67a
[docs] Move documentation to inline comments: GtkBuildable
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611741
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-18 05:27:22 +02:00
Tadej Borovšak
8e8d302d10
[docs] Move documentation to inline comments: GtkBin
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=612351
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-18 05:19:21 +02:00
Tadej Borovšak
4c0cf04688
[docs] Move documentation to inline comments: GtkAspectFrame
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611958
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-18 05:08:36 +02:00
Tadej Borovšak
b802be45b3
[docs] Move documentation to inline comments: GtkAlignment.
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611956
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-18 04:55:27 +02:00
Tadej Borovšak
b6a6142556
[docs] Move documentation to inline comments: GtkAction
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611952
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-18 04:49:51 +02:00
Steven Harms
6cdeb370a1
[docs] Move documentation to inline comments: GtkVRuler
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611656
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-18 03:55:22 +02:00
Steven Harms
25b6994cba
[docs] Move documentation to inline comments: GtkVolumeButton
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611827
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-18 03:48:26 +02:00
Steven Harms
7693026e44
[docs] Move documentation to inline comments: GtkViewport
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611829x
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-18 03:29:16 +02:00
Steven Harms
75ffa7983a
[docs] Move documentation to inline comments: GtkVPaned
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611634
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-18 02:57:30 +02:00
Patrick Bernaud
6a9b72525a
[docs] Move documentation to inline comments: GtkSocket
...
https://bugzilla.gnome.org/show_bug.cgi?id=611707
2010-04-18 02:36:04 +02:00
Stefan Kost
d4a159d488
[docs] improve docs for gtk_accelerator_parse().
...
Link to gdk_keyval_from_name() and give example for non obvious accelerator
strings.
2010-04-16 21:30:47 +03:00
Javier Jardón
edfcc3dd41
[docs] Fix GtkWidget and GtkFileChooser documentation
...
gtk-doc version >= 1.14 is more strict, It produces valid xml
if the source is valid.
2010-04-15 22:58:39 +02:00
Javier Jardón
06f66c185a
Fix compilation warning: set a default case in switchs
2010-04-15 21:10:32 +02:00
Javier Jardón
8cde95bc5f
Fix compilation warning: remove unused variable
2010-04-15 16:19:42 +02:00
Michael Natterer
ece97b2359
Bug 615162 - Fix tooltips on offscreen widgets
...
Fix the "widget under pointer" logic and keyboard tooltip positioning
to do the right thing on offscreen widgets.
2010-04-15 13:03:43 +02:00
Michael Natterer
fdf936b5ad
gtk: fixes for offscreen widgets
...
Fix gtk_widget_translate_coordinates() and
_gtk_widget_synthesize_crossing() so they work in hierarchies with
offscreen widgets.
2010-04-15 13:02:04 +02: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
Martyn Russell
100ecea239
Fixed build failure for gtkorientable
2010-04-13 11:22:45 +01:00
Martyn Russell
72c51a5a6a
tracker-search-engine: Fixed whitespace issues and copyright/authors
2010-04-13 11:13:58 +01:00
Martyn Russell
f5781b42cf
tracker-search-engine: Improve search query to order by rank and title
2010-04-13 11:13:58 +01:00
Martyn Russell
f6c1d54b3f
tracker-search-engine: Fixed 0.7/0.8 issues and add 0.9 cases
2010-04-13 11:13:58 +01:00
Javier Jardón
af0a7aea5f
Use G_DEFINE_INTERFACE macro in gtkbuildable
...
https://bugzilla.gnome.org/show_bug.cgi?id=605186
2010-04-13 07:44:12 +02:00
Javier Jardón
9f6e03f231
Use G_DEFINE_INTERFACE macro in gtkorientable
...
https://bugzilla.gnome.org/show_bug.cgi?id=605186
2010-04-13 07:43:51 +02:00
Javier Jardón
e534897216
Use G_DEFINE_INTERFACE macro in gtkcelleditable
...
https://bugzilla.gnome.org/show_bug.cgi?id=605186
2010-04-13 07:42:34 +02:00
Javier Jardón
5bcf3ba72a
Fix compilation warning: move function to proper location
...
Move _count_nodes() auxiliar function inside the
G_ENABLE_DEBUG define, where other auxiliar functions are.
2010-04-12 22:10:38 +02:00
Javier Jardón
3e5d49f52b
Fix compilation warning: Use G_ENABLE_DEBUG to enable the var
2010-04-12 22:10:34 +02:00
Tor Lillqvist
e544602065
Add Visual Studio 2008 project files
...
Similar setup as in GLib and Pango. Also here we use a build/win32/vs9
subfolder, even if there is nothing else in build or build/win32.
2010-04-12 12:45:40 +03:00
Tomas Bzatek
faf0beede0
FileChooser: Initialize search engines on demand
...
We postpone initialization of the search engines until
it's really needed. See bug 614971 for reference.
2010-04-07 15:07:05 +02:00
Tomas Bzatek
a812fcb305
Support for tracker 0.8 stable release
2010-04-07 15:02:18 +02:00
Tristan Van Berkom
b9516e70f5
Add notes to GtkBuilder docs about the possible error domains, closed bgo #560147
2010-04-06 16:27:40 -04:00
Tristan Van Berkom
d92ee6dc68
Fixed gtk_builder_value_from_string_type() to always assign the GError
...
when returning FALSE, fixes bgo #615000 .
2010-04-06 16:25:43 -04:00
Cody Russell
b6d9bb6e1e
Fix for bug #557689 and bug #402349 , where opening a file chooser in
...
folder browse mode would require the user to click on something
before clicking "Open".
2010-04-05 12:57:33 -05: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
Benjamin Otte
9514e741cd
Fix error case in filesystem model
...
We should not unref the model here, it might not even exist anymore.
Instead check if it exists and only use it if it does.
The unref was leftover from a previous fix in
ba9f53397f
.
Spotted by Matthias Clasen in
https://bugzilla.gnome.org/show_bug.cgi?id=614099
2010-03-29 16:29:20 +02:00
Christian Dywan
23fa7fcc6e
Fix a misspelling in gtk_cell_view_new_with_markup
...
This fixes bug 613887.
2010-03-28 04:22:41 +02:00
Hiroyuki Ikezoe
22b0149b78
Use g_value_take_string to avoid redundant invoking g_free.
2010-03-25 16:34:46 +01:00
Javier Jardón
014c28c208
Fix compilation warning: Use GtkWidget instead GtkMenuItem
2010-03-25 14:52:18 +01:00
Sjoerd Simons
a957d4593e
Prevent the destruction of the menu label on page removal
...
In certain cases the menu label of a notebook page will be reused after the
page was removed from the notebook, for instance when a page is dragged from
one notebook to another. For such cases make sure that the menu label isn't
destroyed as part of destroying the menu item it was in.
2010-03-22 14:11:05 -04:00
Matthias Clasen
3c7b29098c
Add a dependency for Gtk-2.0.gir on Gdk-2.0.gir
...
Another parallel build fix, see bug 610946.
2010-03-22 13:02:24 -04:00
Matthias Clasen
5f29a679f8
Avoid spurious notifications from GtkEntry
...
Using gtk_entry_set_buffer() in dispose() causes problematic
notifications, so just get rid of the buffer manually. See bug 613241.
2010-03-19 23:24:33 -04:00
Tomas Bzatek
8dc4a4f954
search: update for tracker 0.8 API
...
Tracker 0.8 series (and late 0.7.xx) introduces new API based on SPARQL
query language. The queries here use fulltext search, just like with
with previous tracker versions. Old tracker 0.6 support is still maintained.
2010-03-19 14:40:11 +01:00
Matthias Clasen
6ad8909e3c
Make menu scrolling work with auto mnemonics
...
The menu scrolling code is not robust against menu repositioning so
we have avoid causing unnecessary recalculations of labels in parent
menuitems.
2010-03-17 21:18:31 -04:00
Hiroyuki Ikezoe
3a65f554c5
Fix a tiny documentation typo
2010-03-17 13:10:17 -04:00
Javier Jardón
14c9a3a596
More uses of g_strcmp0
2010-03-16 19:16:31 +01:00
Rafal Luzynski
839c88fd73
Use g_strcmp0 where it makes sense
2010-03-16 19:01:25 +01:00
Hiroyuki Ikezoe
590ceded96
Don't get settings unless we need them
...
Pointed out in bug 613028.
2010-03-16 13:01:18 -04:00
Jan Arne Petersen
63c21edab7
Fix notify::label emmision in GtkMenuItem
...
Emit notify::label in GtkMenuItem also when label is changed through GtkAction.
Refactor GtkMenuItem and remove duplicated code for GtkLabel creation. Reset
the accel-widget back to the GtkMenuItem itself when there is no action related
to the GtkMenuItem anymore.
Add test for notify::label emmisions.
Fixes bug 612574 - GtkMenuItem does not emit notify::label when label is
changed through GtkAction.
2010-03-15 20:50:07 +01:00
Tristan Van Berkom
e8c0920494
Refixed patch for bug 612505.
...
New patch makes sure to update the display even when
the GtkEntry's buffer is set to NULL, it also breaks the
reference to the buffer in ->dispose() instead of ->finalize().
2010-03-14 16:29:42 -04:00
Matthias Clasen
a085bb1f0b
Improve the behaviour of automatic mnemonics
...
With this change, key events continue to go to an open menu even
when the pointer is moved over a non-selectable menuitem. The mnemonics
are shown and hidden accordingly.
2010-03-14 16:11:48 -04:00
Matthias Clasen
c55e0fc372
Fix tests
2010-03-13 00:49:10 -05:00
Matthias Clasen
233281fd39
Recompute label contents when the buffer changes
...
Also reset cursor positions to avoid assertions.
This fixes bug 612505, patch by Tristan Van Berkom.
2010-03-12 15:59:59 -05:00
Christian Dywan
c1a3a0fd9b
Improve docs of gtk_notebook_set_tab_label_packing
...
Use the term tab label rather than bookmark and point out
that packing type is deprecated.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=612575
2010-03-12 17:56:21 +01:00
Tor Lillqvist
a46d2e68c6
Check for __MINGW64__ and not __MINGW64
...
Should fix bug #612308 .
2010-03-12 11:47:15 +02:00
Javier Jardón
2c043d33c2
Improve GTK_WIDGET_FLAGS() deprecation documentation
...
Also, use GTK_OBJECT_FLAGS() instead.
Note that some internal code still uses GTK_WIDGET_FLAGS().
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-12 06:46:34 +01:00
Christian Dywan
f90abc4eed
Fix definition of GTK_VOLUME_BUTTON_CLASS cast
...
There is an extra 'e' there.
2010-03-11 15:27:34 +01:00
Alan Knowles
8b6e1b4de2
Fix introspection on return value transfer for gtk_clipboard_get*
...
ownership transfer set to none for clipboard get methods
2010-03-10 22:21:52 +08:00
Alan Knowles
96acf8d46d
Fix gtk_text_tag_table_lookup transfer introspection notes
...
transfer should be none for return value of gtk_text_tag_table_lookup
2010-03-10 22:13:53 +08:00
Matthias Clasen
718bf77712
Remove conflicting legacy compose sequences in favour of X.org sequences
...
Patch by Jeroen Hoek. See bug 557420 for a prolonged discussion.
Quick summary of the removed sequences:
<Multi_key> <asciicircum> <0>
Consistency. <Multi_key> <asciicircum> [1..9] gives the superscript digit,
legacy sequence for zero is inconsistent.
<Multi_key> <c> <o>
<Multi_key> <c> <O>
Consistency. <Multi_key> <c> [:letter:] already gives vowel plus caron, legacy
sequence for c is inconsistent.
<Multi_key> <comma> <e>
<Multi_key> <comma> <E>
Consistency. <Multi_key> <comma> [:letter:] is for letter with cedilla,
<Multi_key> <semicolon> [:letter:] is for letter with ogolek
<Multi_key> <C> <slash>
<Multi_key> <slash> <C>
Unintuitive. ¢ is visually a vertical bar through a lowercase c, not a slash
through an uppercase C. ₡ has no alternatives, whilst ¢ can be typed as
<Multi_key> <bar> <c>.
<Multi_key> <d> <minus>
đ can be input through <Multi_key> <minus> <d>. <Multi_key> <d> <minus> is used
for ₫.
<Multi_key> <equal> <L>
<Multi_key> <L> <equal>
Unintuitive. ₤ has two dashes, £ one; therefore L + = > ₤, and L + - = £.
<Multi_key> <exclam> <s>
<Multi_key> <exclam> <S>
Consistency. <Multi_key> <exclam> [:letter:] is used for letter with dot below.
§ can be input using <Multi_key> <o> <s>.
<Multi_key> <period> <period>
Might need an alternative for ˙, but … (upstream) has no alternative either.
<Multi_key> <underscore> <a>
<Multi_key> <underscore> <A>
<Multi_key> <underscore> <o>
<Multi_key> <underscore> <O>
Consistency. <Multi_key> <underscore> [:vowel:] gives vowel with macron for ȳ ū
ī ē too.
<Multi_key> <minus> <d>
<Multi_key> <minus> <D>
<Multi_key> <o> <e>
<Multi_key> <O> <E>
Redundant. In upstream as is.
2010-03-09 02:26:51 -05:00
Matthias Clasen
0ffc31d762
Regenerated compose tables
...
Now without non-BMP keysyms.
2010-03-09 02:15:20 -05:00
Matthias Clasen
a152f7360d
Updates to the compose-parse.py script
...
Get gdkkeysyms.h from git, instead of the outdated copy from svn.
Get Unicode 5.2.0 data. Fix a few issues with missing keysyms in
keysyms.txt. Make the filtering of non-BMP keysyms work.
2010-03-09 02:12:33 -05:00
Matthias Clasen
0fca5a3cca
Add some keysyms missing from keysyms.txt
2010-03-09 00:54:08 -05:00
Matthias Clasen
6ab9b85159
fix file permissions
2010-03-09 00:52:26 -05:00
Matthias Clasen
09b64dab0d
Add some more annotation to the DND api
2010-03-09 00:12:57 -05:00
Matthias Clasen
bf88eee131
Fix file chooser refcounting issues
...
This was reported in bug 600992.
2010-03-08 23:56:43 -05:00
Matthias Clasen
2036d9262e
Add missing colons
2010-03-08 21:34:17 -05:00
Christian Dywan
bc284541a9
Document the use of NULL in gtk_window_set_transient_for
...
This fixes bug 611319.
2010-03-08 21:22:54 -05:00
Javier Jardón
32b9aeaadd
Don't use GTK_WIDGET_STATE in internal code anymore
...
Use gtk_widget_get/set_state() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-09 02:40:17 +01:00
Matthias Clasen
b61fe50640
Remove obsolete translator comments
...
Reported in bug 611217
2010-03-08 20:14:37 -05:00
Matthias Clasen
ac6525b27c
Add introspection annotations to gtk_drag_(source|dest)_set
...
Also move docs inline at the same time. Bug 610905.
2010-03-08 19:21:32 -05:00
Matthias Clasen
d84a831423
Don't scroll to insert after middle-click paste
...
Patch by Ignacio Casal Quinteiro, bug 612119.
2010-03-08 11:25:26 -05:00
Matthias Clasen
87f48634f4
Fix an infinite loop in gtk_dialog_map()
...
The new focus handling with links in labels tripped up the code
that tries to avoid focussing labels. Bug 612066
2010-03-08 10:36:11 -05:00
Michael Natterer
0a49865ec4
gtk: remove begin-user-action/end-user-action around copying
...
Copying to the clipboard is not a buffer mutation, so calling
gtk_text_buffer_begin_user_action() and _end_user_action() is only
confusing apps which connect to these signals in order to build undo
stacks or otherwise track buffer changes. Most likely, these apps
either didn't notice the bugus undo step or simply work around it.
2010-03-07 12:15:33 +01:00
Javier Jardón
72948f46bd
Don't use GTK_WIDGET_SET_FLAGS() in gtk_widget_init()
2010-03-06 13:17:56 +01:00
Javier Jardón
691c13c424
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_PARENT_SENSITIVE)
...
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-06 13:13:01 +01:00
Javier Jardón
a7efb2eaa0
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_RC_STYLE)
...
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-06 13:01:58 +01:00
Javier Jardón
24491f8224
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_APP_PAINTABLE)
...
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-06 12:29:26 +01:00
Javier Jardón
74ed719fa4
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_MAPPED)
...
Use new API instead: gtk_widget_set_mapped ()
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-06 12:02:21 +01: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
24bafd8693
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_NO_WINDOW)
...
Use new API instead: gtk_widget_set_has_window ()
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-06 11:37:06 +01:00
Patrick Bernaud
7ab2155aef
Move documentation to inline comments: GtkPlug
...
https://bugzilla.gnome.org/show_bug.cgi?id=611707
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-03-05 05:37:16 +01:00
Steven Harms
3f579a7a93
Move documentation to inline comments: GtkVBox
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611831
2010-03-05 05:25:07 +01:00
Steven Harms
15d1d8bb3b
Move documentation to inline comments: GtkVSeparator
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611662
2010-03-04 02:33:56 +01:00
Steven Harms
f0f3b01876
Move documentation to inline comments: GtkVScrollbar
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611658
2010-03-04 02:33:50 +01:00
Steven Harms
69279262bc
Update gtkvscale documentation for in code comments. Removed template document
2010-03-03 23:46:15 +01:00
Javier Jardón
62a829dd30
Add version info about the deprecation of GTK_WIDGET_SENSITIVE
...
This completes the patch of
commit 64f526d34e
2010-03-03 23:05:40 +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
32d043535b
Fix gtk_widget_is_sensitive() function. Second try
...
Use GTK_PARENT_SENSITIVE flag instead
gtk_widget_get_sensitive(widget->parent)
2010-03-03 02:39:25 +01:00
Javier Jardón
491ed58420
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_NO_SHOW_ALL)
2010-03-02 18:24:21 +01:00
Javier Jardón
f8fb228752
Fix gtk_widget_is_sensitive() function
...
The bug was introduced in
commit a27d5a2c9e
2010-03-02 17:54:16 +01:00
Javier Jardón
e8e95d4c5e
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_CAN_DEFAULT)
...
Use new API instead: gtk_widget_set_can_default ()
2010-03-02 07:58:05 +01:00
Javier Jardón
483a5a9e1a
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_CAN_FOCUS)
...
Use new API instead: gtk_widget_set_can_focus ()
2010-03-02 04:42:54 +01:00
Javier Jardón
c3d09e5627
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_SENSITIVE)
2010-03-01 18:24:28 +01:00
Javier Jardón
27b64f50e6
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_DOUBLE_BUFFERED)
...
Use new API instead: gtk_widget_set_double_buffered ()
2010-03-01 18:14:05 +01:00
Javier Jardón
b909abaa62
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_RECEIVES_DEFAULT)
...
Use new API instead: gtk_widget_set_receives_default ()
2010-03-01 18:03:19 +01:00
Javier Jardón
b4b95d07f8
Deprecate widget flag: GTK_WIDGET_PARENT_SENSITIVE
...
Use gtk_widget_get_sensitive() on the parent widget instead.
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-01 07:57:27 +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
Javier Jardón
4232115e22
Deprecate widget flag: GTK_WIDGET_HAS_FOCUS
...
Use gtk_widget_has_focus() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-01 06:11:01 +01:00
Javier Jardón
64f526d34e
Deprecate widget flag: GTK_WIDGET_SENSITIVE
...
Use gtk_widget_get_sensitive() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-01 05:59:23 +01:00
Javier Jardón
f5bde06e82
Don't use GTK_WIDGET_NO_WINDOW in internal code anymore
...
Use gtk_widget_get_has_window() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-01 05:44:19 +01:00
Javier Jardón
a27d5a2c9e
Deprecate widget flag: GTK_WIDGET_IS_SENSITIVE
...
Use gtk_widget_is_sensitive() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-01 05:32:51 +01:00
Javier Jardón
4f78f70b15
Deprecate widget flag: GTK_WIDGET_DRAWABLE
...
Use gtk_widget_is_drawable() instead.
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-01 04:55:55 +01:00
Florian Müllner
c4a3a7bdfd
Add introspection annotation for gtk_builder_get_object
2010-02-25 21:33:15 +01:00
Matthias Clasen
e69add1dad
Add some missing docs
2010-02-23 14:14:02 -05:00
Matthias Clasen
e601f6c478
doc fixes
2010-02-23 14:14:02 -05:00
Matthias Clasen
1e381138f3
Correct annotations for gtk_tree_view_get_path_at_pos
...
Patch by Alan Knowles, bug 609514.
2010-02-23 12:51:45 -05:00
Matthias Clasen
06d02578f8
Handle out-of-bounds parameters in gtk_assistant_get_nth_page
...
Better do what the docs say...fix by Tadej Borovšak, bug 610141.
2010-02-23 11:23:10 -05:00
Matthias Clasen
ddcc305f4e
Fix a segfault in gtk_assistant_set_current_page
...
Reported by Tadej Borovšak in bug 610184
2010-02-23 11:16:04 -05:00
Matthias Clasen
c3f0cdcfcf
Clarify the docs for gtk_info_bar_set_default_response
...
According to bug 610632
2010-02-23 11:13:16 -05:00
Matthias Clasen
9ce6db1297
Add some padding in tool buttons
...
The default value of the icon-spacing style property was 0, which
is just not good. Themes are of course free to change this anyway.
Bug 610381.
2010-02-23 10:30:23 -05:00
Carlos Garcia Campos
62758ff5ef
[docs] Fix GtkPlug::embedded signal documentation
...
See bug #609650 .
2010-02-22 15:02:58 +01:00
Carlos Garcia Campos
e5fc3dcf64
Emit GtkPlug::embedded signal when plug/socket are in the same process too
...
Fixes bug #609650 .
2010-02-22 15:02:19 +01:00
Viktor Pracht
ff28ee8e6b
[Annotations] Add array length for GtkTreeStore
...
https://bugzilla.gnome.org/show_bug.cgi?id=603923
2010-02-19 18:58:01 -02:00
Johan Dahlin
592fd7a93b
[annotations] Add allow-none for gtk_menu_popup
2010-02-19 18:52:19 -02:00
Johan Dahlin
fe85272112
[annotations] Add allow-none
...
This commit was created using a script that searched for all docstrings
containing a parameter and the string 'or %NULL'.
Gdk backends and demos excluded as they are not part of a public API
https://bugzilla.gnome.org/show_bug.cgi?id=610474
2010-02-19 17:57:51 -02:00
Michael Natterer
347d406f80
Bug 548026 - No accessor for GtkWidget.requisition
...
Add gtk_widget_get_requisition().
2010-02-19 17:04:20 +01:00
Stefan Kost
5ff724ea95
widget: ensure boolean before comparing
...
Ensure boolean value like done elsewhere.
2010-02-15 10:14:50 +02:00
Stefan Kost
ad93f2bc3e
widget: don't check before setting to avoid costly type checks
...
There are no side effect of setting these flags and we don't fire g_object
notifies also. Thus set/unset right away without costly check of current state.
2010-02-15 10:14:50 +02:00
Javier Jardón
c77678e037
Revert "Drop duplicate declarations"
...
The issue is already fixed in f9a3ce06cc
This reverts commit 6f566057e8
.
2010-02-13 04:54:19 +01:00
Matthias Clasen
13d69e552d
Fix a compatibility problem
...
It turns out that my attempt at handling Super, Hyper and Meta better
is causing problems, mostly because Alt and Meta are commonly colocated
in the modmap, and apps do a check for the Alt modifier regularly.
See e.g bug 607697.
2010-02-12 18:55:42 -05:00
Matthias Clasen
6f566057e8
Drop duplicate declarations
2010-02-12 18:55:42 -05:00
Christian Dywan
f9a3ce06cc
Remove duplicate definitions of gtk_widget_set/get_realized/mapped
2010-02-12 18:10:17 +01:00
Michael Natterer
0231cff988
Allow calling gtk_widget_style_attach() only when realized
2010-02-11 09:27:05 +01:00
Javier Jardón
3cccae316e
Fix compilation warning: return FALSE instead NULL
2010-02-11 01:11:17 +01:00
Javier Jardón
45987f44c4
Fix compilation warning: cast to GCompareFunc
2010-02-11 00:57:13 +01:00
Matthias Clasen
e821eea4f0
Add some more goddamn accessors
2010-02-09 13:41:58 -05:00