Commit Graph

10669 Commits

Author SHA1 Message Date
Torsten Schönfeld
670d5ad341 (gtk_color_selection_dialog_get_color_selection): Use the correct macro to test
the validity of the passed-in dialog.

svn path=/trunk/; revision=21171
2008-08-20 20:17:20 +00:00
Milan Crha
1e1fc9ff9e Allow changing page with arrows even on non-focusable notebook. (#528091)
2008-08-05  Milan Crha  <mcrha@redhat.com> 

        * gtk/gtknotebook.c: (gtk_notebook_do_arrow): Allow changing page with
        arrows even on non-focusable notebook. (#528091)


svn path=/trunk/; revision=21170
2008-08-20 08:17:35 +00:00
Federico Mena Quintero
0b1525a231 [PATCH 0/7] bgo543308 - File chooser uses incorrect default size
Signed-off-by: Federico Mena Quintero <federico@novell.com>

svn path=/trunk/; revision=21161
2008-08-20 01:10:42 +00:00
Björn Lindqvist
c40b78ae58 Bug 548354 – Remove repeated code in gtk_cell_view_size_allocate
2008-08-19  Björn Lindqvist  <bjourne@gmail.com>

	Bug 548354 – Remove repeated code in gtk_cell_view_size_allocate

	* gtk/gtkcellview.c (gtk_cell_view_size_allocate): Remove some
	code duplication, no need for separate loops for GTK_PACK_START
	and GTK_PACK_END.

svn path=/trunk/; revision=21158
2008-08-19 19:16:38 +00:00
Johan Dahlin
aad8c0f16e Remove the requres-version tag as well
2008-08-19  Johan Dahlin  <johan@gnome.org>

    * gtk/gtk-builder-convert (GtkBuilderConverter._parse): 
    Remove the requres-version tag as well


svn path=/trunk/; revision=21157
2008-08-19 10:02:12 +00:00
Matthias Clasen
3068d7d6c1 Bump version
svn path=/trunk/; revision=21153
2008-08-19 01:19:54 +00:00
Matthias Clasen
783a4d99ed 2.13.7
svn path=/trunk/; revision=21151
2008-08-19 01:17:29 +00:00
Mathias Hasselmann
61d32f70fc Bug 541600 – GtkCalendar segfault for certain values of detail-with-chars
* gtk/gtkcalendar.c (gtk_calendar_class_init()): Limit the "year"
  property to G_MAXINT >> 9, instead of G_MAXINT >> 8: year_to_days()
  multiplies the year property with 365 and returns the result as
  glong. Therefore ceil(log(365, 2)) = 9 bits must be available,
  not just 8 bits.

svn path=/trunk/; revision=21150
2008-08-18 22:20:19 +00:00
Björn Lindqvist
7df6b76a1a Bug 541315 – Segfault when selecting a GtkMenuItem with submenu and no
2008-08-18  Björn Lindqvist  <bjourne@gmail.com>

	Bug 541315 – Segfault when selecting a GtkMenuItem with submenu
	and no parent

	* gtk/gtkmenuitem.c (gtk_menu_item_real_popup_submenu): Ensure
	that the menu item has a parent before popping it up.

svn path=/trunk/; revision=21149
2008-08-18 17:48:13 +00:00
Johan Dahlin
a5bc18ab7a Bug 548196 – gtk-builder-convert doesn't properly convert GtkTextView
2008-08-18  Johan Dahlin  <johan@gnome.org>

    Bug 548196 – gtk-builder-convert doesn't properly convert GtkTextView

    * gtk/gtk-builder-convert: Rename the text property to buffer.


svn path=/trunk/; revision=21147
2008-08-18 06:51:40 +00:00
Matthias Clasen
50e94e86a0 Use g_quark_from_static_string where possible
svn path=/trunk/; revision=21146
2008-08-18 00:14:17 +00:00
Torsten Schönfeld
016290b4e2 Fix small issues in the documentation of gdk_window_remove_redirection and
gdk_window_redirect_to_drawable.

svn path=/trunk/; revision=21137
2008-08-16 19:56:23 +00:00
Richard Hult
31d013d4bf Some aftermath of the fix of bug #543868. Clip and flip to the source, not
2008-08-15  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkdrawable-quartz.c (gdk_quartz_draw_drawable): Some
	aftermath of the fix of bug #543868. Clip and flip to the source,
	not the destination. Don't save/restore the gstate, it's already
	done when getting/releasing the context.

svn path=/trunk/; revision=21136
2008-08-15 20:27:22 +00:00
Richard Hult
6a1ff1bc22 Add another missing symbol.
2008-08-15  Richard Hult  <richard@imendio.com>

	* gtk/gtkclipboard-quartz.c (gtk_clipboard_wait_is_uris_available):
	Add another missing symbol.

svn path=/trunk/; revision=21135
2008-08-15 20:20:46 +00:00
Behdad Esfahbod
a7f6e2c8fb Bug 547680 – fontconfig monitoring can crash apps
2008-08-15  Behdad Esfahbod  <behdad@gnome.org>

        Bug 547680 – fontconfig monitoring can crash apps

        * gtk/gtksettings.c (settings_update_fontconfig): Clear pango cache
        before recreating fontconfig config.


svn path=/trunk/; revision=21134
2008-08-15 19:43:20 +00:00
Sven Herzberg
e8442a52aa Use the g_test_*() API for this test reviewed by: Richard Hult
2008-08-15  Sven Herzberg  <sven@imendio.com>

	Use the g_test_*() API for this test
	reviewed by: Richard Hult

	* gdk/tests/check-gdk-cairo.c: use the g_test_*() API to permit adding
	new tests


svn path=/trunk/; revision=21133
2008-08-15 18:57:31 +00:00
Sven Herzberg
efb330447c Prepare for using the g_test_*() API reviewed by: Richard Hult
2008-08-15  Sven Herzberg  <sven@imendio.com>

	Prepare for using the g_test_*() API
	reviewed by: Richard Hult

	* gdk/tests/check-gdk-cairo.c: use assertions instead of returning an
	error code


svn path=/trunk/; revision=21132
2008-08-15 18:50:18 +00:00
Claudio Saavedra
d061c0942e Credit Torsten Schoenfeld in latest change.
svn path=/trunk/; revision=21131
2008-08-15 18:37:58 +00:00
Claudio Saavedra
f6dd1785a9 Bug 547944 – Self-reference in gtk_page_setup_load_file's docs
2008-08-15  Claudio Saavedra  <csaavedra@igalia.com>

	Bug 547944 – Self-reference in gtk_page_setup_load_file's docs

	* gtk/gtkpagesetup.c: Fix the reference in gtk_page_setup_load_file()
	documentation.


svn path=/trunk/; revision=21130
2008-08-15 18:37:00 +00:00
Matthias Clasen
8d221c6caa Some doc additions
svn path=/trunk/; revision=21129
2008-08-15 18:01:38 +00:00
Christian Dywan
0d52beb5db Add missing Since tags
svn path=/trunk/; revision=21128
2008-08-15 18:01:00 +00:00
Christian Dywan
11faf1c6bd Improve documentation of "gtk-button-images" setting
svn path=/trunk/; revision=21123
2008-08-15 08:23:53 +00:00
Matthias Clasen
81aa21a834 Don't add pointless getters
svn path=/trunk/; revision=21114
2008-08-14 03:37:43 +00:00
Matthias Clasen
a50b2ee48f Add translator hints
svn path=/trunk/; revision=21113
2008-08-14 03:12:58 +00:00
Michael Natterer
e0bbf16989 get rid of the deprecated aliases NONE and BOOL.
2008-08-13  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkmarshalers.list: get rid of the deprecated aliases NONE
	and BOOL.

	* gtk/gtkdialog.c
	* gtk/gtkentrycompletion.c
	* gtk/gtkmenuitem.c
	* gtk/gtkoldeditable.c
	* gtk/gtkrange.c
	* gtk/gtktreeview.c
	* gtk/gtkwidget.c: changed accordingly.


svn path=/trunk/; revision=21111
2008-08-13 18:44:11 +00:00
Erwann Chenede -
a82a25aa23 Bug 547456 - gdk/x11/gdkscreen-x11.c : init_solaris_xinerama doesn't
2008-08-13 Erwann Chenede - <erwann.chenede@sun.com>

  Bug 547456 - gdk/x11/gdkscreen-x11.c : init_solaris_xinerama 
  doesn't compile on Solaris

  * gdk/x11/gdkscreen-x11.c: make init_solaris_xinerama () compile 
  when HAVE_SOLARIS_XINERAMA is defined.



svn path=/trunk/; revision=21107
2008-08-13 13:47:02 +00:00
Michael Natterer
b8d968aa48 cast the return value of g_dgettext() to fix warning about discarded
2008-08-13  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkstock.c (gtk_stock_lookup): cast the return value of
	g_dgettext() to fix warning about discarded qualifier.


svn path=/trunk/; revision=21106
2008-08-13 08:40:44 +00:00
Paolo Borelli
3a13747e3f use canonical signal name.
2008-08-12  Paolo Borelli  <pborelli@katamail.com>

	* gtk/gtkclipboard.c (gtk_clipboard_store):
	use canonical signal name.


svn path=/trunk/; revision=21104
2008-08-12 19:20:43 +00:00
Paolo Borelli
05dba4badb Bug 526234 - make shift+ctrl+del delete till the end of line
2008-08-12  Paolo Borelli  <pborelli@katamail.com>

	Bug 526234 - make shift+ctrl+del delete till the end of line

	* gtk/gtktextview.c: add shift+ctrl+del and shift+ctrl+backspace
	keyboard shortcuts to delete to the end/start of the current line.


svn path=/trunk/; revision=21103
2008-08-12 17:21:13 +00:00
Michael Natterer
611fcd30d3 bail out if there is no label to set the color on.
2008-08-12  Michael Natterer  <mitch@imendio.com>

	* gtk/gtklinkbutton.c (set_link_color): bail out if there is no
	label to set the color on.

	(gtk_link_button_add): call set_link_color() so the label gets
	the right color no matter how the link button is created.


svn path=/trunk/; revision=21100
2008-08-12 15:47:13 +00:00
Michael Natterer
25d3a9c309 remove unused variable and fix formatting of some function headers.
2008-08-12  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkassistant.c: remove unused variable and fix formatting of
	some function headers.


svn path=/trunk/; revision=21099
2008-08-12 15:20:19 +00:00
Michael Natterer
e0d30ee141 define -DGDK_PIXBUF_DISABLE_DEPRECATED in the global CFLAGS.
2008-08-12  Michael Natterer  <mitch@imendio.com>

	* configure.in: define -DGDK_PIXBUF_DISABLE_DEPRECATED in the
	global CFLAGS.

	* gdk-pixbuf/Makefile.am: make the contents gdk-pixbuf-marshal.h
	visible for GDK_PIXBUF_COMPILATION.

	* contrib/gdk-pixbuf-xlib/Makefile.am
	* demos/Makefile.am
	* demos/gtk-demo/Makefile.am
	* gdk-pixbuf/pixops/Makefile.am
	* gdk/Makefile.am
	* gdk/x11/Makefile.am
	* gtk/Makefile.am
	* gtk/tests/Makefile.am
	* gtk/theme-bits/Makefile.am
	* modules/engines/ms-windows/Makefile.am
	* modules/engines/pixbuf/Makefile.am
	* modules/input/Makefile.am
	* perf/Makefile.am
	* tests/Makefile.am: remove -DDGDK_PIXBUF_DISABLE_DEPRECATED here.


svn path=/trunk/; revision=21096
2008-08-12 15:04:55 +00:00
Michael Natterer
f385a771e1 use g_return_val_if_fail() now that the function has a return value.
2008-08-12  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkstatusicon.c (gtk_status_icon_get_gicon): use
	g_return_val_if_fail() now that the function has a return value.


svn path=/trunk/; revision=21095
2008-08-12 14:45:35 +00:00
Sven Neumann
b699ac5853 gtk/gtkaccellabel.c gtk/gtkaction.c gtk/gtkclist.c gtk/gtkcolorbutton.c
2008-08-12  Sven Neumann  <sven@gimp.org>

	* gtk/gtkaccellabel.c
	* gtk/gtkaction.c
	* gtk/gtkclist.c
	* gtk/gtkcolorbutton.c
	* gtk/gtkctree.c
	* gtk/gtkdialog.c
	* gtk/gtkdnd-quartz.c
	* gtk/gtkdnd.c
	* gtk/gtkentry.c
	* gtk/gtkfilechooserdefault.c
	* gtk/gtkfilesel.c
	* gtk/gtkgamma.c
	* gtk/gtkiconview.c
	* gtk/gtkkeyhash.c
	* gtk/gtklabel.c
	* gtk/gtkmenu.c
	* gtk/gtkmenubar.c
	* gtk/gtkpaned.c
	* gtk/gtkrecentchooserdialog.c
	* gtk/gtkrecentchooserutils.c
	* gtk/gtkselection.c
	* gtk/gtksizegroup.c
	* gtk/gtktextbtree.c
	* gtk/gtktextbuffer.c
	* gtk/gtktextview.c
	* gtk/gtktoolbar.c
	* gtk/gtktreemodel.c
	* gtk/gtkuimanager.c
	* gtk/gtkwindow-decorate.c
	* gtk/gtkwindow.c: use canonical signal names in some more places
	that I missed earlier. Also changed this in the documentation and
	comments.


svn path=/trunk/; revision=21094
2008-08-12 14:37:03 +00:00
Sven Neumann
851061574a gtk/gtknotebook.c property nick and blurb should be marked with P_(), not
2008-08-12  Sven Neumann  <sven@gimp.org>

	* gtk/gtknotebook.c
	* gtk/gtkradiotoolbutton.c: property nick and blurb should be
	marked with P_(), not _().


svn path=/trunk/; revision=21091
2008-08-12 11:32:35 +00:00
Michael Natterer
b2d286d5bf examples/gtkdial/gtkdial.c gdk/gdkapplaunchcontext.c gdk/gdkpango.c
2008-08-12  Michael Natterer  <mitch@imendio.com>

	* examples/gtkdial/gtkdial.c
	* gdk/gdkapplaunchcontext.c
	* gdk/gdkpango.c
	* gtk/gtkcellrendererpixbuf.c
	* gtk/gtkcellrenderertext.c
	* gtk/gtkcellview.c
	* gtk/gtkcombobox.c
	* gtk/gtkfontsel.c
	* gtk/gtkinvisible.c
	* gtk/gtkliststore.c
	* gtk/gtktexttag.c
	* gtk/gtktexttagtable.c: remove dereferencing from some function
	pointers i missed before.


svn path=/trunk/; revision=21089
2008-08-12 09:51:16 +00:00
Michael Natterer
d9d3379698 gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkentry.c
2008-08-12  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkaccellabel.c
	* gtk/gtkcalendar.c
	* gtk/gtkclist.c
	* gtk/gtkentry.c
	* gtk/gtkeventbox.c
	* gtk/gtkfilechooserbutton.c
	* gtk/gtkfilechooserdefault.c
	* gtk/gtkhandlebox.c
	* gtk/gtkhsv.c
	* gtk/gtkiconview.c
	* gtk/gtkimage.c
	* gtk/gtklayout.c
	* gtk/gtklistitem.c
	* gtk/gtkmenuitem.c
	* gtk/gtkmessagedialog.c
	* gtk/gtknotebook.c
	* gtk/gtkpaned.c
	* gtk/gtkpathbar.c
	* gtk/gtkplug.c
	* gtk/gtkprintunixdialog.c
	* gtk/gtkrange.c
	* gtk/gtkrecentchooserdefault.c
	* gtk/gtkruler.c
	* gtk/gtksocket.c
	* gtk/gtktext.c
	* gtk/gtktextview.c
	* gtk/gtktoolbar.c
	* gtk/gtktreeitem.c
	* gtk/gtktreeview.c
	* gtk/gtkviewport.c
	* gtk/gtkwin32embedwidget.c: chain up unconditionally in
	realize(), unrealize(), map(), unmap(), style_set(),
	key_press_event() and size_request()


svn path=/trunk/; revision=21088
2008-08-12 09:44:32 +00:00
Michael Natterer
4980a282a0 change names of default implementations of our own signals to consistently
2008-08-12  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkwidget.c: change names of default implementations of
	our own signals to consistently contain "real":

	gtk_widget_style_set -> gtk_widget_real_style_set
	gtk_widget_direction_changed -> gtk_widget_real_direction_changed


svn path=/trunk/; revision=21087
2008-08-12 09:25:35 +00:00
Michael Natterer
e18d3c6fd3 consistently chain up using GTK_FOO_CLASS(parent_class)->bar(instance)
2008-08-12  Michael Natterer  <mitch@imendio.com>

	* gtk/*.c: consistently chain up using
	GTK_FOO_CLASS(parent_class)->bar(instance) instead of
	(*GTK_FOO_CLASS(parent_class))->bar(instance).


svn path=/trunk/; revision=21085
2008-08-12 09:06:34 +00:00
Matthias Clasen
a862e0dfcd Fix some new api
svn path=/trunk/; revision=21083
2008-08-12 07:25:08 +00:00
Michael Natterer
74bc87842f Bug 546754 – 2.13.6 update create rendering issue in the evolution
2008-08-11  Michael Natterer  <mitch@imendio.com>

	Bug 546754 – 2.13.6 update create rendering issue in the evolution
	composer

	* gtk/gtkadjustment.c: instead of CLAMP(), use

	value = MIN (value, upper - page_size);
	value = MAX (value, lower);

	so we don't end up below lower if upper - page_size is smaller
	than lower.


svn path=/trunk/; revision=21080
2008-08-11 21:07:36 +00:00
Matthias Clasen
6f789132c5 Fix build with old cups
svn path=/trunk/; revision=21079
2008-08-11 19:59:50 +00:00
Michael Natterer
ac32796399 Bug 547270 – Make GtkHSV public
2008-08-11  Michael Natterer  <mitch@imendio.com>

	Bug 547270 – Make GtkHSV public

	* gtk/Makefile.am
	* gtk/gtk.h: install gtkhsv.h as public header (its symbols were
	always public anyway).

	* gtk/gtkhsv.h: add single-include guards, add class struct padding,
	seal the instance member, cleanup.

	* gtk/gtkhsv.c: center the widget in its allocation,
	add "Since: 2.14", cleanup.


svn path=/trunk/; revision=21078
2008-08-11 19:57:38 +00:00
Torsten Schönfeld
7dbf580797 Fix the Since: tag of GtkCalendarDetailFunc to correctly state 2.14, not 2.16.
svn path=/trunk/; revision=21077
2008-08-11 19:54:07 +00:00
Sven Neumann
092187e99c demos/gtk-demo/changedisplay.c demos/gtk-demo/clipboard.c
2008-08-11  Sven Neumann  <sven@gimp.org>

	* demos/gtk-demo/changedisplay.c
	* demos/gtk-demo/clipboard.c
	* demos/gtk-demo/drawingarea.c
	* demos/gtk-demo/iconview.c
	* demos/gtk-demo/images.c
	* demos/gtk-demo/pixbufs.c: use canonical signal names in the 
demos.


svn path=/trunk/; revision=21074
2008-08-11 19:12:58 +00:00
Matthias Clasen
987da8416f Move some mnemonics around
svn path=/trunk/; revision=21073
2008-08-11 19:09:32 +00:00
Sven Neumann
d1ceb929b5 use canonical signal names.
2008-08-11  Sven Neumann  <sven@gimp.org>

	* gdk-pixbuf/gdk-pixbuf-loader.c: use canonical signal names.


svn path=/trunk/; revision=21072
2008-08-11 18:40:41 +00:00
Sven Neumann
e3e126ae9e modules/input/gtkimcontextime.c modules/input/gtkimcontextmultipress.c use
2008-08-11  Sven Neumann  <sven@gimp.org>

	* modules/input/gtkimcontextime.c
	* modules/input/gtkimcontextmultipress.c
	* modules/input/gtkimcontextxim.c: use canonical signal names.


svn path=/trunk/; revision=21070
2008-08-11 14:55:31 +00:00
Sven Neumann
4c33ae06be gtk/gtkdnd-quartz.c gtk/gtkdnd.c gtk/gtkentry.c gtk/gtkfilesel.c
2008-08-11  Sven Neumann  <sven@gimp.org>

	* gtk/gtkdnd-quartz.c
	* gtk/gtkdnd.c
	* gtk/gtkentry.c
	* gtk/gtkfilesel.c
	* gtk/gtkimcontextsimple.c
	* gtk/gtkimmulticontext.c
	* gtk/gtkoptionmenu.c
	* gtk/gtkplug.c
	* gtk/gtkrecentchooserdefault.c
	* gtk/gtkscrolledwindow.c
	* gtk/gtksocket-x11.c: use canonical signal names in some more
	places that I missed earlier.


svn path=/trunk/; revision=21069
2008-08-11 13:36:15 +00:00
Sven Neumann
b5796771d2 gtk/gtkaccelgroup.c gtk/gtkactiongroup.c gtk/gtkcalendar.c
2008-08-11  Sven Neumann  <sven@gimp.org>

	* gtk/gtkaccelgroup.c
	* gtk/gtkactiongroup.c
	* gtk/gtkcalendar.c
	* gtk/gtkcelleditable.c
	* gtk/gtkclipboard-quartz.c
	* gtk/gtkclipboard.c
	* gtk/gtkcolorbutton.c
	* gtk/gtkcolorsel.c
	* gtk/gtkcontainer.c
	* gtk/gtkcurve.c: use canonical signal names.


svn path=/trunk/; revision=21068
2008-08-11 13:07:18 +00:00