Commit Graph

8932 Commits

Author SHA1 Message Date
Carlos Garcia Campos
67d8ed9ed3 Send the print job title to the previewer
The previewer should know the print job title too, it could be included
in the print settings file. Fixes bug #561345
2009-04-10 11:53:11 +02:00
Carlos Garcia Campos
d77156952d Save PageSetup into print settings file used by the print previewer
Fixes bug #578271
2009-04-10 11:53:11 +02:00
Matthias Clasen
f0b4779d56 Improve accessible name
Change the accessible name of an entry in the print dialog from "At"
to "Time of print". String addition. (#577964)
2009-04-10 00:09:27 -04:00
Matthias Clasen
84a9e65ca3 Allow empty passwords in GtkMountOperation
Allow empty passwords, since there are situations where the
backend doesn't need the password.  (#578365)
2009-04-08 12:59:10 -04:00
Matthias Clasen
9eaa76e70d Support links in licenses
Apply the same linkification to the license that we do for credits
in about dialogs. E.g. GTK3 contains a link.  (#577789)
2009-04-08 00:52:38 -04:00
Matthias Clasen
b037b39886 Remove a non-effective style-set handler
The style-set handler was supposed to set the background color of
the text views in the credits dialog, but due to a thinko it never
had any effect, unless a theme change happened while the dialog
was open. Seems best to keep the current appearance now and remove
the handler. (#577868)
2009-04-08 00:39:22 -04:00
Matthias Clasen
b9355968fc Improve accessibility of the print dialog
Add accessible name and description to the "Pages" and "At" entries,
and improve focus handling.  (#577964)
2009-04-08 00:12:54 -04:00
Matthias Clasen
45ac4f2523 Improve focus handling in the print dialog
Move the focus to the range entry when selecting the "Pages".
2009-04-07 23:51:52 -04:00
Matthias Clasen
954552a4cf Fix --help output of gtk-builder-convert 2009-04-07 23:38:07 -04:00
Matthias Clasen
d89c9911f0 Avoid warnings when unrealizing a text view
For some reason, input methods can emit preedit-changed when a
text view is unrealized, at which point the layout has already
been cleared. (#578221)
2009-04-07 19:28:29 -04:00
Matthias Clasen
7e6cd2b31c Fix a memory leak in GtkAccelGroup
Unref closures in accel group finalization (#577824).
2009-04-07 19:11:33 -04:00
Johan Dahlin
fbe7ba55ce Convert GtkComboBox items propertly
If the last character is a newline, just ignore it.
This is what glade normally writes, fixes #578276.
2009-04-07 18:04:05 -03:00
Alexander Larsson
4ecd6a0f89 Merge branch 'master' of ssh://alexl@git.gnome.org/git/gtk+ 2009-04-07 19:29:19 +02:00
Björn Lindqvist
3fb6fbd801 clarify bugfix in 2.14 for gtk_expander_get_label
Updated documentation for gtk_expander_get_label to clarify that
it was changed in 2.14.
2009-04-07 12:54:15 -04:00
Alexander Larsson
5e0bd0c9be Set user_time from startup_id if window realized
For non-realized windows we set the user_time from the startup id on
realization. However, if the window is already realized when the
startup_id is not set we currently don't, but we should. (#573922)
2009-04-07 15:39:00 +02:00
Alexander Larsson
bb093cf44c Set errno to 0 before calling strtoul
We check errno for failure, so ensure its cleared first. (#573922)
2009-04-07 15:32:16 +02:00
Matthias Clasen
45894c9fad Fix a GtkBuilder crash
Always set an error when returning FALSE from gtk_builder_value_from_string.
This fixes the crash reported in bug 532858.
2009-04-06 20:55:26 -04:00
Matthias Clasen
eeb3223802 Trivial formatting fix 2009-04-06 20:45:11 -04:00
Matthias Clasen
209af946f3 Improve gtk-builder-convert error reporting
Make gtk-builder-convert warn when it meets duplicate ids, since
those will not work with GtkBuilder.
2009-04-06 20:21:04 -04:00
Matthias Clasen
1a312bfa3e Improve GtkBuilder error reporting
Make GtkBuilder report an error when it encounters a duplicate id,
instead of segfaulting later on
2009-04-06 20:13:35 -04:00
Matthias Clasen
1ad8bfb69a Better i18n support in GtkBuilder
Let descriptions of accessible actions be translated, by specifying
the description as content of the <action> element, and allowing
"translatable", "context" and "comment" as attributes. (#518642)
2009-04-06 12:12:08 -04:00
Christian Dywan
8ab5f5673b Move G_END_DECLS before the #endif in gtkitemfactory.h
Bug 577650 – gtkitemfactory.h fails to compile

Place G_END_DECLS inside conditionals, otherwise C++ compilers
will see a closing curly bracket when including the file for
the second time.
2009-04-04 13:40:12 +02:00
Matthias Clasen
b25cfb78fc fix slist/list confusion
Don't use g_list_find on a GSList in _gtk_window_set_is_toplevel
(rh#492767).
2009-04-02 10:21:15 -04:00
Christian Persch
3b437b016c Bug 577224 – crash when setting new icon after setting icon in
2009-03-29  Christian Persch  <chpe@gnome.org>

	Bug 577224 – crash when setting new icon after setting icon in
	gtkstatusicon

	* gtk/gtkstatusicon.c: (gtk_status_icon_reset_image_data),
	(gtk_status_icon_set_from_gicon): Retain a reference when setting
	from a GIcon, and use g_object_unref on GIcon, not g_free.

svn path=/trunk/; revision=22594
2009-03-29 21:25:13 +00:00
Stefan Walter
de60fd8cfd Use gtk_entry_xxx functions rather than using GtkEntry structure directly.
See bug #576801

svn path=/trunk/; revision=22589
2009-03-27 05:22:23 +00:00
Christian Dywan
e5110c50b6 Typo correction, s/hilding/holding
svn path=/trunk/; revision=22588
2009-03-25 22:54:10 +00:00
Claudio Saavedra
584bd9cbc6 Bug 574283 – unused assignment and dead code in
2009-03-19  Claudio Saavedra  <csaavedra@igalia.com>

	Bug 574283 – unused assignment and dead code in
	gtk_widget_set_tooltip_window()

	* gtk/gtkwidget.c: (gtk_widget_set_tooltip_window): Remove
	an unused assignment, improving checks, and clean up method.


svn path=/trunk/; revision=22575
2009-03-19 07:47:23 +00:00
Michael Natterer
576ef4d6ea add static function gtk_scale_button_set_orientation_private() and use it
2009-03-18  Michael Natterer  <mitch@gimp.org>

	* gtk/gtkscalebutton.c: add static function
	gtk_scale_button_set_orientation_private() and use it instead of
	the public but deprecated gtk_scale_button_set_orientation().


svn path=/trunk/; revision=22574
2009-03-18 21:19:07 +00:00
Tor Lillqvist
f3bcc940a6 Newer mingw-w64 uses an underscore-prefixed identification macro.
2009-03-17  Tor Lillqvist  <tml@novell.com>

	* gtk/gtkprintoperation-win32.c: Newer mingw-w64 uses an
	underscore-prefixed identification macro.


svn path=/trunk/; revision=22561
2009-03-17 12:58:40 +00:00
Matthias Clasen
20708e3827 Fix problems with window positioning
svn path=/trunk/; revision=22524
2009-03-11 23:27:07 +00:00
Matthias Clasen
013cd9bbda Bug 574561 – gtk_style_get "shadows" g_object_get
* gtk/gtk.symbols:
        * gtk/gtkstyle.[hc]: Rename gtk_style_get_property to
        gtk_style_get_style_property to avoid problems for language
        bindings. Pointed out by Torsten Schoenfeld.


svn path=/trunk/; revision=22502
2009-03-10 18:58:23 +00:00
Matthias Clasen
4b497ad5e8 ::icon-press and ::icon-release are not action signals. Pointed out by
* gtk/gtkentry.c: ::icon-press and ::icon-release are not
        action signals. Pointed out by Murray Cumming


svn path=/trunk/; revision=22501
2009-03-10 17:45:25 +00:00
Michael Hasselmann
2f915bec20 Fixed regression reported in bug #574059. (search button not available in
2009-03-04  Michael Hasselmann <michaelh@openismus.com>

* gtk/gtkcomboboxentry.c (gtk_combo_box_entry_contents_changed):
Fixed regression reported in bug #574059. (search button not available in 
some cases.) The old implementation relied on bug #572478.

svn path=/trunk/; revision=22500
2009-03-10 15:57:16 +00:00
Alexander Larsson
4227351c44 Clear all optionally created widget pointer in priv. Initially priv is
2009-03-10  Alexander Larsson  <alexl@redhat.com>

        * gtk/gtkmountoperation.c:
        (gtk_mount_operation_ask_password):
	Clear all optionally created widget pointer in priv. Initially
	priv is cleared so thats ok, but on a second call we may have
	leftovers from previous calls which is problematic if for instance
	we asked for the user the first time and not the second, then we
	will access the old priv->username_entry.



svn path=/trunk/; revision=22496
2009-03-10 10:29:03 +00:00
Michael Natterer
06759f3674 don't call gtk_orientable_set_orientation() because that calls
2009-03-06  Michael Natterer  <mitch@gimp.org>

	* gtk/gtkscalebutton.c (gtk_scale_button_set_property): don't call
	gtk_orientable_set_orientation() because that calls g_object_set()
	again -> infinite recursion. Call gtk_scale_button_set_orientation()
	instead.


svn path=/trunk/; revision=22478
2009-03-06 14:06:46 +00:00
Matthias Clasen
a1ec034734 Improve the drawing of progress in entries, using fg/bg[SELECTED]. Add a
* gtk/gtkentry.c: Improve the drawing of progress in entries,
        using fg/bg[SELECTED]. Add a progress-border style property.
        Draw progress behind icons too.
        * gtk/gtkrc.c: Add defaults for fg/bg[SELECTED] in entries.
        Patch by Benjamin Berg.



svn path=/trunk/; revision=22445
2009-03-02 18:22:56 +00:00
Matthias Clasen
d30ea97464 If additional areas got invalidated, don't try to add them to the paint
* gtk/gtktextview.c (gtk_text_view_paint): If additional areas got
        invalidated, don't try to add them to the paint region: in an expose
        handler, we cannot paint outside the area that was passed in, since
        drawing will be clipped. So stealing the update region from the
        window causes lost draws.
        Patch by Owen Taylor


svn path=/trunk/; revision=22442
2009-03-02 15:45:53 +00:00
Matthias Clasen
1291ab4a18 Switch to the newly created folder on success.
* gtk/gtkfilechooserdefault.c (edited_idle_cb): Switch to the newly
        created folder on success.


svn path=/trunk/; revision=22432
2009-03-01 07:33:11 +00:00
Matthias Clasen
7ab372c6ca Make gtk-doc pick up deprecation notes
svn path=/trunk/; revision=22426
2009-02-28 19:26:14 +00:00
Matthias Clasen
03879f4c1f Avoid warnings
svn path=/trunk/; revision=22424
2009-02-28 06:32:27 +00:00
Matthias Clasen
d65c585c28 Keep popups on the right screen. Pointed out by Morten Welinder
* gtk/gtkentrycompletion.c:
        * gtk/gtknotebook.c: Keep popups on the right screen.
        Pointed out by Morten Welinder


svn path=/trunk/; revision=22423
2009-02-28 06:13:58 +00:00
Matthias Clasen
d0e7f5889e Bug 573069 – Gdk-CRITICAL warnings with Gtk 2.14 when dragging
GtkNotebook tabs

        * gtk/gtkwidget.c (_gtk_widget_synthesize_crossing): Be a little
        more careful when navigating up the parent chain.

        * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Reset the
        pointer window thats stored on the screen when it is destroyed.


svn path=/trunk/; revision=22420
2009-02-28 05:24:07 +00:00
Matthias Clasen
3a8c0e370b Handle widget being NULL. Pointed out by Wouter Bolsterlee.
* gtk/gtkpaned.c (get_child_panes): Handle widget being NULL.
        Pointed out by Wouter Bolsterlee.


svn path=/trunk/; revision=22419
2009-02-28 00:52:59 +00:00
Matthias Clasen
08db83d2ac Don't leak a GtkRecentInfo. Found by Tommi Rantala
* gtk/gtkrecentchooserdefault.c (copy_activated_cb): Don't leak
        a GtkRecentInfo. Found by Tommi Rantala



svn path=/trunk/; revision=22418
2009-02-28 00:22:15 +00:00
Matthias Clasen
b475130e4f Copy the right string. Pointed out by Tommi Rantala
* gtk/gtkiconview.c
        (gtk_icon_view_item_accessible_image_set_image_description): Copy
        the right string. Pointed out by Tommi Rantala


svn path=/trunk/; revision=22417
2009-02-28 00:15:01 +00:00
David Zeuthen
bb883db776 Bug 573383 – GtkMountOperation fixes for ask_password()
2009-02-27  David Zeuthen  <davidz@redhat.com>

	Bug 573383 – GtkMountOperation fixes for ask_password()

	* gtk/gtkmountoperation.c (gtk_mount_operation_ask_password):
	Split the message from GMountOperation into primary/secondary like
	we also do in gtk_mount_operation_ask_question()


svn path=/trunk/; revision=22415
2009-02-27 21:03:47 +00:00
Michael Natterer
f6eb9d4269 Bug 573383 – Setting a textview's buffer to NULL doesn't do a complete
2009-02-27  Michael Natterer  <mitch@imendio.com>

	Bug 573383 – Setting a textview's buffer to NULL doesn't do a
	complete job

	* gtk/gtktextview.c (gtk_text_view_set_buffer): always set
	text_view->layout's buffer, also if it's NULL.


svn path=/trunk/; revision=22414
2009-02-27 16:21:40 +00:00
Tristan Van Berkom
009542c192 Bug 572904 – GtkRadioAction broken in trunk
Bug 572904 – GtkRadioAction broken in trunk

	* gtk/gtkradioaction.c: When setting non active state always
	notify the action's active state (this prevents toggle type proxies
	used with radio actions from deactivating when pressed a second time).


svn path=/trunk/; revision=22409
2009-02-26 02:33:42 +00:00
Xan Lopez
7871e09560 Bug 495320 - GtkRange does not use gdk_event_request_motions
2009-02-25  Xan Lopez  <xan@gnome.org>

        Bug 495320 - GtkRange does not use gdk_event_request_motions

        * gtk/gtkrange.c:
        (gtk_range_motion_notify): Use gdk_event_request_motions to
        request more motion events, as suggested in the docs for widgets
        using motion hints.

svn path=/trunk/; revision=22407
2009-02-25 17:38:53 +00:00
Matthias Clasen
7d8930fdcc Never scroll the places horizontally. Instead, ellipsize the text.
* gtk/gtkfilechooserdefault.c (shortcuts_list_create): Never scroll
        the places horizontally. Instead, ellipsize the text.



svn path=/trunk/; revision=22397
2009-02-24 02:20:15 +00:00