Commit Graph

10230 Commits

Author SHA1 Message Date
Matthias Clasen
1b2584a8ac Add an example for manually setting up a group of actions.
2005-03-15  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkradioaction.c (gtk_radio_action_get_group): Add an
	example for manually setting up a group of actions.
2005-03-15 16:33:43 +00:00
Matthias Clasen
0e86016442 Document that inline completion requires text-column to be set.
2005-03-15  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
	Document that inline completion requires text-column to be set.
	(gtk_entry_completion_compute_prefix): Return NULL if text-column
	is not set.

	* gtk/gtkentry.c (check_completion_callback): Call
	gtk_entry_completion_complete() before inserting the prefix,
	otherwise the prefix may depend on (random) state of the
	filter model.
2005-03-15 15:00:11 +00:00
Anders Carlsson
3fc42d7ab9 Update spec.
2005-03-15  Anders Carlsson  <andersca@imendio.com>

	* docs/iconcache.txt:
	Update spec.

	* gtk/gtkiconcache.c: (find_image_offset),
	(_gtk_icon_cache_get_icon_flags), (_gtk_icon_cache_add_icons),
	(_gtk_icon_cache_get_icon), (_gtk_icon_cache_get_icon_data):
	* gtk/gtkiconcache.h:
	Update to be able to fetch pixbuf data and icon metadata.

	* gtk/gtkicontheme.c: (theme_lookup_icon), (gtk_icon_info_free),
	(icon_info_ensure_scale_and_pixbuf):
	Use new cache functions.

	* gtk/updateiconcache.c: (foreach_remove_func), (load_icon_data),
	(maybe_cache_image_data), (scan_directory), (write_pixdata),
	(get_image_meta_data_size), (get_image_pixel_data_size),
	(get_image_data_size), (get_single_node_size), (get_bucket_size),
	(write_bucket), (main):
	Update to write pixbuf data as well as information from .icon
	files.
2005-03-15 13:18:25 +00:00
Tor Lillqvist
7c12edeb93 New debugging function. As GetKeyNameText() returns a localized key name
2005-03-15  Tor Lillqvist  <tml@novell.com>

	* gdk/win32/gdkmain-win32.c (_gdk_win32_key_to_string): New
	debugging function. As GetKeyNameText() returns a localized key
	name we need to convert it to UTF-8.

	* gdk/win32/gdkprivate-win32.h: Declare it.

	* gdk/win32/gdkevents-win32.c: Use it.

	* gdk/win32/gdkwindow-win32.c (gdk_window_new_internal): Fix
	handling of children of foreign windows. They should be child
	windows from Windows's perspective, even if they are toplevel GDK
	windows.
2005-03-15 02:07:08 +00:00
Matthias Clasen
eef20f2c83 Make PLT-reduction work with gcc4, and don't include everything in
2005-03-14  Matthias Clasen  <mclasen@redhat.com>

	Make PLT-reduction work with gcc4, and don't include
	everything in gdk-pixbuf-alias.h:

	* gdk-pixbuf.symbols: Group symbols by header and source file.
	* /makegdkpixbufalias.pl: Protect definitions by the same
	preprocessor symbols used to guard the headers. Move
	the alias declarations to a separate file which is
	produced when calling makegdkpixbufalias.pl -def
	* Makefile.am (gdk-pixbuf-aliasdef.c): Add a rule to generate
	this file.
	* *.c: Include gdk-pixbuf-alias.h after the other headers,
	include gdk-pixbuf-aliasdef.c at the bottom.
2005-03-14 19:37:00 +00:00
Ivan, Wong Yat Cheung
706ff83a7d A further fix for big window support. Now also the test in testgtk works.
2005-03-13  Ivan, Wong Yat Cheung  <email@ivanwong.info>

	* gdk/win32/gdkgeometry-win32.c (gdk_window_scroll): A further fix
	for big window support. Now also the test in testgtk works.
2005-03-12 22:09:54 +00:00
Matthias Clasen
b24c2d21b2 Make it compile 2005-03-12 04:21:42 +00:00
Matthias Clasen
9adb145bb6 Don't crash on style changes. (#169334, Yury Puzis)
2005-03-11  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkaboutdialog.c (add_credits_page): Don't crash on
	style changes.  (#169334, Yury Puzis)
2005-03-12 04:00:12 +00:00
Matthias Clasen
7ecf872b9a Fix the doc comments. (#169967, Masao Mutoh)
2005-03-11  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkicontheme.c (gtk_icon_theme_set_custom_theme): Fix
	the doc comments.  (#169967, Masao Mutoh)
2005-03-12 03:38:31 +00:00
Ivan, Wong Yat Cheung
ad24594d10 Big window fix for Win32. Big windows are still emulated within 16-bit
2005-03-12  Ivan, Wong Yat Cheung  <email@ivanwong.info>

	Big window fix for Win32. Big windows are still emulated within
	16-bit coordinate limits, though. Big windows now work on NT-based
	Windows. (#169989)

	* gdk/win32/gdkgc-win32.c (_gdk_win32_gdkregion_to_hrgn): Use
	32-bit coordinates.

	* gdk/win32/gdkgeometry-win32.c: Largely rewrite.

	* gdk/win32/gdkwindow-win32.c: Minor related changes.
2005-03-11 23:50:21 +00:00
Matthias Clasen
a8a1f7b99a Fix a doc typo. (#169873, Johan Dahlin)
2005-03-10  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkliststore.c (gtk_list_store_insert_with_valuesv):
	Fix a doc typo.  (#169873, Johan Dahlin)
2005-03-11 04:32:01 +00:00
Matthias Clasen
602d233229 Don't try to focus the default_widget if there is none. (#169881, Thomas
2005-03-10  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkdialog.c (gtk_dialog_map): Don't
	try to focus the default_widget if there is
	none.  (#169881, Thomas Leonard)
2005-03-11 04:28:13 +00:00
Tor Lillqvist
f40bcdcfc5 gdk-pixbuf-core.h gdk-pixbuf-io.c Implement DLL ABI stablility for
2005-03-10  Tor Lillqvist  <tml@novell.com>

	* gdk-pixbuf-core.h
	* gdk-pixbuf-io.c
	* gdk-pixbuf.symbols: Implement DLL ABI stablility for
	gdk_pixbuf_save() and gdk_pixbuf_savev(). (#167973)
2005-03-10 19:13:19 +00:00
Manish Singh
77265413d9 Remove inadvertent gail references, require Pango 1.9.0
Wed Mar  9 19:20:44 2005  Manish Singh  <yosh@gimp.org>

        * configure.in: Remove inadvertent gail references, require
        Pango 1.9.0
2005-03-10 03:21:28 +00:00
Matthias Clasen
60970ae68c Bump GLib requirement 2005-03-09 19:39:50 +00:00
Matthias Clasen
60416c88e2 Fix a C99ism. (#169741, Morten Welinder)
2005-03-09  Matthias Clasen  <mclasen@redhat.com>

	* io-gif-animation.c (gdk_pixbuf_gif_anim_frame_composite): Fix
	a C99ism.  (#169741, Morten Welinder)
2005-03-09 18:20:04 +00:00
Matthias Clasen
8d279c6d77 Typo fixes. (#169728, Morten Welinder, Owen Taylor)
2005-03-09  Matthias Clasen  <mclasen@redhat.com>

	* gtk/tmpl/gtkwidget.sgml: Typo fixes. 	(#169728,
	Morten Welinder, Owen Taylor)
2005-03-09 17:47:32 +00:00
Matthias Clasen
4c9bcf2843 Fix a typo in the docs. (#169729, Morten Welinder)
2005-03-09  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkwidget.c (gtk_widget_add_mnemonic_label): Fix a typo
	in the docs.  (#169729, Morten Welinder)
2005-03-09 17:41:31 +00:00
Matthias Clasen
2b0370f987 Fix a typo.
2005-03-09  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkimage.c (gtk_image_class_init): Fix a typo.
2005-03-09 16:19:12 +00:00
Matthias Clasen
32492c4be4 Queue a resize when the model is unset. (#169528, Tomislav Jonjic)
2005-03-09  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkiconview.c (gtk_icon_view_set_model): Queue a resize
	when the model is unset.  (#169528, Tomislav Jonjic)
2005-03-09 16:09:22 +00:00
Matthias Clasen
f01ab587f5 More of the same.
2005-03-09  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkviewport.c (gtk_viewport_class_init):
	* gtk/gtkuimanager.c (gtk_ui_manager_class_init):
	* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_class_init):
	* gtk/gtktipsquery.c (gtk_tips_query_class_init):
	* gtk/gtktext.c (gtk_text_class_init):
	* gtk/gtkstatusbar.c (gtk_statusbar_class_init):
	* gtk/gtkspinbutton.c (gtk_spin_button_class_init):
	* gtk/gtktoggleaction.c (gtk_toggle_action_class_init):
	* gtk/gtkoptionmenu.c (gtk_option_menu_class_init):
	* gtk/gtkoldeditable.c (gtk_old_editable_class_init):
	* gtk/gtkmessagedialog.c (gtk_message_dialog_class_init):
	* gtk/gtktoolbutton.c (gtk_tool_button_class_init):
	* gtk/gtktoolitem.c (gtk_tool_item_class_init):
	* gtk/gtkimage.c (gtk_image_class_init):
	* gtk/gtkruler.c (gtk_ruler_class_init):
	* gtk/gtkiconview.c (gtk_icon_view_class_init):
	* gtk/gtkprogressbar.c (gtk_progress_bar_class_init):
	* gtk/gtkprogress.c (gtk_progress_class_init):
	* gtk/gtkmenu.c (gtk_menu_class_init):
	* gtk/gtkscale.c (gtk_scale_class_init):
	* gtk/gtkpaned.c (gtk_paned_class_init):
	* gtk/gtkhandlebox.c (gtk_handle_box_class_init):
	* gtk/gtkfontbutton.c (gtk_font_button_class_init):
	* gtk/gtkfontsel.c (gtk_font_selection_class_init):
	* gtk/gtkfilesel.c (gtk_file_selection_class_init):
	* gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
	* gtk/gtkcurve.c (gtk_curve_class_init):
	* gtk/gtkcombo.c (gtk_combo_class_init):
	* gtk/gtkcombobox.c (gtk_combo_box_class_init):
	* gtk/gtkcolorbutton.c (gtk_color_button_class_init):
	* gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init):
	* gtk/gtkmenuitem.c (gtk_menu_item_class_init):
	* gtk/gtkcheckbutton.c (gtk_check_button_class_init):
	* gtk/gtktogglebutton.c (gtk_toggle_button_class_init):
	* gtk/gtkcellview.c (gtk_cell_view_class_init):
	* gtk/gtktoolbar.c (gtk_toolbar_class_init):
	* gtk/gtkmenubar.c (gtk_menu_bar_class_init):
	* gtk/gtkclist.c (gtk_clist_class_init):
	* gtk/gtkctree.c (gtk_ctree_class_init):
	* gtk/gtkcolorsel.c (gtk_color_selection_class_init):
	* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init):
	* gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init):
	* gtk/gtkcomboboxentry.c (gtk_combo_box_entry_class_init):
	* gtk/gtkcalendar.c (gtk_calendar_class_init):
	* gtk/gtkbbox.c (gtk_button_box_class_init):
	* gtk/gtktable.c (gtk_table_class_init):
	* gtk/gtkaspectframe.c (gtk_aspect_frame_class_init):
	* gtk/gtkframe.c (gtk_frame_class_init):
	* gtk/gtkaction.c (gtk_action_class_init):
	* gtk/gtkaccellabel.c (gtk_accel_label_class_init):
	* gtk/gtkaboutdialog.c (gtk_about_dialog_class_init):
	* gtk/gtkdialog.c (gtk_dialog_class_init): More of the same.
2005-03-09 06:15:39 +00:00
Matthias Clasen
52711c24e8 More canonical property names. 2005-03-09 06:15:13 +00:00
Matthias Clasen
263bce4445 x
2005-03-08  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktextbuffer.c (gtk_text_buffer_class_init):
	* gtk/gtkrange.c (gtk_range_class_init):
	* gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init):
	* gtk/gtktexttag.c (gtk_text_tag_class_init):
	* gtk/gtktextview.c (gtk_text_view_class_init):
	* gtk/gtkscrollbar.c (gtk_scrollbar_class_init):
	* gtk/gtknotebook.c (gtk_notebook_class_init):
	* gtk/gtkentry.c (gtk_entry_class_init):
	* gtk/gtkexpander.c (gtk_expander_class_init):
	* gtk/gtkarrow.c (gtk_arrow_class_init):
	* gtk/gtkalignment.c (gtk_alignment_class_init):
	* gtk/gtkbutton.c (gtk_button_class_init):
	* gtk/gtklabel.c (gtk_label_class_init):
	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init):
	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): x
	* gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init):
	* gtk/gtktreeview.c (gtk_tree_view_class_init):
	* gtk/gtkbox.c (gtk_box_class_init):
	* gtk/gtkwindow.c (gtk_window_class_init, gtk_window_class_init):
	* gtk/gtkcontainer.c (gtk_container_class_init):
	* gtk/gtkwidget.c (gtk_widget_class_init):
	* gtk/gtkobject.c (gtk_object_class_init): Use canonical names
	when registering param specs.
2005-03-09 04:04:40 +00:00
Matthias Clasen
c8ce95ab52 Use canonical form of the name when registering properties.
2005-03-08  Matthias Clasen  <mclasen@redhat.com>

	* gdk-pixbuf.c (gdk_pixbuf_class_init): Use canonical
	form of the name when registering properties.
2005-03-09 02:49:27 +00:00
Matthias Clasen
b81da13000 Use GtkCellRendererCombo (#169607, Mark McLoughlin)
2005-03-08  Matthias Clasen  <mclasen@redhat.com>

	* demos/gtk-demo/editable_cells.c: Use GtkCellRendererCombo
	(#169607, Mark McLoughlin)
2005-03-08 16:10:28 +00:00
Martin Willemoes Hansen
b6804b7219 Updated Danish translation.
* da.po: Updated Danish translation.
2005-03-08 10:19:10 +00:00
Matthias Clasen
7b0d4522ed Add the new attributes to the .symbols files. 2005-03-08 06:10:31 +00:00
Matthias Clasen
c8830f2504 Use G_GNUC_NULL_TERMINATED where appropriate. (#165682, Marc Meissner)
2005-03-08  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkwidget.h:
	* gtk/gtktreeview.h:
	* gtk/gtktreeviewcolumn.h:
	* gtk/gtktextbuffer.h:
	* gtk/gtkobject.h:
	* gtk/gtkfilechooserdialog.h:
	* gtk/gtkdialog.h:
	* gtk/gtkcontainer.h:
	* gtk/gtkcelllayout.h:
	* gtk/gtkaboutdialog.h: Use G_GNUC_NULL_TERMINATED where
	appropriate.  (#165682, Marc Meissner)
2005-03-08 05:52:55 +00:00
Matthias Clasen
3c8b5b490c Convert the gdk keyval-keyname tables to a big string + offsets. (#168901)
2005-03-07  Matthias Clasen  <mclasen@redhat.com>

	Convert the gdk keyval-keyname tables to a big string
	+ offsets. (#168901)

	* gdk/gen-keyname-table.pl: Perl script inspired by
	pango/tools/gen-color-table.pl to create the
	gdk_keys_by_keyval and gdk_keys_by_name tables as lists
	of offsets pointing into a big const string.

	* gdk/keynames.txt: List of keyval-keyname pairs.
	* gdk/keyname-table.h: Generated tables.

	* gdk/gdkkeynames.c: Include keyname-table.h and don't
	generate the inverse table at runtime.
2005-03-08 04:35:29 +00:00
Matthias Clasen
f0175e1ff6 Use a generated table of offsets into a big const string to avoid
2005-03-07  Matthias Clasen  <mclasen@redhat.com>

	* io-xpm.c: Use a generated table of offsets
	into a big const string to avoid relocations
	in the rgb color table. (#168901, Tommi Komulainen)

	* gen-color-table.pl: Script to generate the table,
	copied from Owen Taylors script by the same name
	in Pango.

	* xpm-color-table.h: The generated table.
2005-03-08 03:59:45 +00:00
Matthias Clasen
d1134c4908 Document ownership of filters. (#169101, Sebastian Rittau)
2005-03-07  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilechooser.c (gtk_file_chooser_add_filter): Document
	ownership of filters.  (#169101, Sebastian Rittau)
2005-03-07 22:09:13 +00:00
Matthias Clasen
40b2753db5 Document which parameters may be NULL. (#166855, Frank Naumann)
2005-03-07  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkstyle.c: Document which parameters may be NULL.
	(#166855, Frank Naumann)
2005-03-07 22:02:43 +00:00
Dan Damian
c86e6b335b Updated Romanian translation by Mişu Moldovan <dumol@go.ro>.
* ro.po: Updated Romanian translation by         Mişu Moldovan <dumol@go.ro>.
2005-03-06 12:45:37 +00:00
Dan Damian
d81e99b09b Updated Romanian translation by Mişu Moldovan <dumol@go.ro>.
* ro.po: Updated Romanian translation by         Mişu Moldovan <dumol@go.ro>.
2005-03-05 16:05:52 +00:00
Adam Weinberger
e86a51b83f Updated Canadian English translation.
* en_CA.po: Updated Canadian English translation.
2005-03-04 22:40:31 +00:00
Raphael Higino
74bfd391e9 Updated pt_BR translation 2005-03-04 16:29:50 +00:00
Jordi Mallach
bf5a63da8a Updated Catalan translation. 2005-03-04 09:13:03 +00:00
Manish Singh
bc170a5436 URL escape the '+' in gtk+ in the bugzilla URL.
Thu Mar  3 16:59:44 2005  Manish Singh  <yosh@gimp.org>

        * configure.in: URL escape the '+' in gtk+ in the bugzilla URL.
2005-03-04 01:01:01 +00:00
Matthias Clasen
e6716d2336 Don't leak the values here. (#169047, Philip Langdale)
2005-03-03  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtksettings.c (gtk_settings_get_property):
	* gtk/gtkrc.c (gtk_rc_parse_assignment): Don't leak
	the values here.  (#169047, Philip Langdale)
2005-03-03 14:15:14 +00:00
Matthias Clasen
f5869e6a87 Check the number of scanned items. (#168906, Morten Welinder)
2005-03-03  Matthias Clasen  <mclasen@redhat.com>

	* io-xpm.c (pixbuf_create_from_xpm): Check the number
	of scanned items.  (#168906, Morten Welinder)
2005-03-03 14:02:59 +00:00
Matthias Clasen
a3cee3d83a Don't warn if a stock icon cannot be found. (#168830, Sven Neumann)
2005-03-03  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
	Don't warn if a stock icon cannot be found.  (#168830,
	Sven Neumann)
2005-03-03 13:57:00 +00:00
Matthias Clasen
1f6a65d375 Make the gif loader handle oom when loading animations. (#168857, Tommi
2005-03-03  Matthias Clasen  <mclasen@redhat.com>

	Make the gif loader handle oom when loading
	animations.  (#168857, Tommi Komulainen)

	* io-gif-animation.c (gdk_pixbuf_gif_anim_frame_composite):
	Handle oom by returning NULL.

	* io-gif.c (gif_get_lzw): Return an error if composite
	returns NULL.
2005-03-03 13:29:01 +00:00
Matthias Clasen
d74feca09e Avoid warnings if gtk_widget_reparent() is called at unusual times.
2005-03-03  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkwidget.c (gtk_widget_reparent_subwindows):
	Avoid warnings if gtk_widget_reparent() is called at
	unusual times.  (#168966, Christian Persch)
2005-03-03 06:40:53 +00:00
Raphael Higino
aad5057b51 Updated pt_BR translation 2005-03-02 19:39:23 +00:00
Manish Singh
de1e169e44 Cast to avoid const warnings on data structure seeding.
Tue Mar  1 14:04:08 2005  Manish Singh  <yosh@gimp.org>

        * gdk/x11/gdkproperty-x11.c (virtual_atom_check_init): Cast to avoid
        const warnings on data structure seeding.
2005-03-01 22:25:42 +00:00
Manish Singh
5fed4b4afd revert previous change, maintain ABI.
Tue Mar  1 13:53:56 2005  Manish Singh  <yosh@gimp.org>

        * gtk/xdgmime/xdgmime.[ch]: revert previous change, maintain ABI.
2005-03-01 22:00:03 +00:00
Matthias Clasen
af58a0dbd8 Fix prelighting. (#157392, Vincent Noel, patch by Christian Persch)
* gtk/gtkmenutoolbutton.c (button_state_changed_cb):
	Fix prelighting.  (#157392, Vincent Noel, patch by
	Christian Persch)
2005-03-01 16:07:04 +00:00
Matthias Clasen
86db923391 Make icon data caching work again. (#168851, Alexander Larsson)
2005-03-01  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkicontheme.c (theme_lookup_icon): Make
	icon data caching work again.  (#168851, Alexander Larsson)
2005-03-01 14:59:04 +00:00
Matthias Clasen
6834bb9597 Revert the previous change, since it breaks bin compat.
2005-03-01  Matthias Clasen  <mclasen@redhat.com>

	* gdk-pixbuf/gdk-pixbuf.c:
	* gdk-pixbuf/gdk-pixbuf-features.h.in:
	Revert the previous change, since it breaks
	bin compat.
2005-03-01 14:57:20 +00:00
Matthias Clasen
4fcaa4e1da Forgotten file 2005-03-01 06:43:55 +00:00