1. 01 Sep, 2005 1 commit
    • Matthias Clasen's avatar
      Intern some more strings. · 94eec042
      Matthias Clasen authored
      2005-09-01  Matthias Clasen  <mclasen@redhat.com>
      
              * gdk/*.c: Intern some more strings.
              * gtk/gtkintl.h:
              * gtk/*.c: Define an I_() macro and use it instead of the
              bulky g_intern_static_string().
      94eec042
  2. 31 Aug, 2005 1 commit
    • Matthias Clasen's avatar
      Intern type names in code generated by glib-mkenums, too. · c09cc893
      Matthias Clasen authored
      2005-08-31  Matthias Clasen  <mclasen@redhat.com>
      
      	* gdk/Makefile.am:
      	* gtk/Makefile.am: Intern type names in code generated by
      	glib-mkenums, too.
      
      	* gtk/*.c:
      	* gdk/x11/*.c:
      	* gdk/*.c: Intern type names before registering the type to avoid
      	unnecessary copies.
      c09cc893
  3. 03 May, 2005 1 commit
  4. 20 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Make PLT-reduction work with gcc4, and don't include everything in · cca8dd63
      Matthias Clasen authored
      2005-03-20  Matthias Clasen  <mclasen@redhat.com>
      
      	Make PLT-reduction work with gcc4, and don't include
      	everything in gdkalias.h:
      
      	* gtk/grk.symbols: Group symbols by header and source file.
      	* gtk/makegtkalias.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 makegtkalias.pl -def
      	* gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate
      	this file.
      	* gtk/*.c: Include gtkalias.h after the other headers,
      	include gtkaliasdef.c at the bottom.
      	* gtk/*.h: Small cleanups.
      cca8dd63
  5. 17 Jan, 2005 1 commit
    • Matthias Clasen's avatar
      Fix argument order in docs. · 5a1da160
      Matthias Clasen authored
      2005-01-16  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new_with_backend):
      	Fix argument order in docs.
      5a1da160
  6. 15 Dec, 2004 1 commit
    • Federico Mena Quintero's avatar
      Merged from gtk-2-4: · 9f558a15
      Federico Mena Quintero authored
      2004-12-14  Federico Mena Quintero  <federico@ximian.com>
      
      	Merged from gtk-2-4:
      
      	Fix #145470:
      
      	* gtk/gtkfilechooserdefault.c
      	(gtk_file_chooser_default_initial_focus): Queue a pending
      	operation to select the first row if we are not finished loading
      	yet.
      	(gtk_file_chooser_default_class_init): Override GtkWidget::map().
      	(gtk_file_chooser_default_map): New ::map() handler; refresh the
      	file and bookmark lists.
      
      	* gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_class_init):
      	Override GtkWidget::map() and GtkWidget::unmap().
      	(gtk_file_chooser_dialog_constructor): Don't call initial_focus()
      	here.
      	(gtk_file_chooser_dialog_map): Map the file chooser widget if
      	needed.  Call initial_focus() here.
      	(gtk_file_chooser_dialog_unmap): Unmap the file chooser widget.
      	When we are re-mapped, the widget will get mapped as well and it
      	will have a chance to refresh.
      9f558a15
  7. 09 Aug, 2004 1 commit
    • Matthias Clasen's avatar
      Add hidden aliases for exported symbols which are used internally in order · 3612aee5
      Matthias Clasen authored
      Mon Aug  9 12:48:04 2004  Matthias Clasen  <maclas@gmx.de>
      
      	Add hidden aliases for exported symbols which are
      	used internally in order to get rid of many PLT
      	entries.  (#145519, Arjan van de Ven)
      
      	* gtk/Makefile.am: Add rules to generate gtk.def and
      	from gtk.symbols, and make make check check the abi
      	with abicheck.sh.
      	(gtk_private_h_sources): Add gtkinternals.h
      	(gtk_built_private_headers): Add gtkalias.h
      	(gtk_extra_sources): Add gtk.symbols
      	(EXTRA_DIST): Add makegtkalias.pl and abicheck.sh
      
      	* gtk/gtk.symbols: New file. Definition of the GTK+ ABI.
      	The file can be processed by cpp to filter out certain
      	subsets of symbols.
      
      	* gtk/abicheck.sh: New file. Script to check the actually
      	symbols exported from libgtk-x11.2.0.so against the symbols
      	found in gtk.symbols.
      
      	* gtk/makegtkalias.pl: New file. Perl script to generate the
      	header containing the alias definitions for internally used
      	exported symbols from a list of symbols.
      
      	* gtk/gtkinternals.h: New file. An uninstalled header listing
      	symbols which must be exported for some reason and do not appear
      	in any other header.
      
      	* gtk/*.c: Include gtkalias.h
      3612aee5
  8. 12 Mar, 2004 2 commits
    • Soeren Sandmann's avatar
      Clamp the new size to the screen. Part of bug 129020. · 543b1c2f
      Soeren Sandmann authored
      Fri Mar 12 23:37:15 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkfilechooserdialog.c
      	(file_chooser_widget_default_realized_size_changed): Clamp the
      	new size to the screen. Part of bug 129020.
      543b1c2f
    • Federico Mena Quintero's avatar
      Don't ignore the return value of gtk_widget_activate(). · edf8e6f5
      Federico Mena Quintero authored
      2004-03-12  Federico Mena Quintero  <federico@ximian.com>
      
      	* gtk/gtkwindow.c (gtk_window_activate_focus): Don't ignore the
      	return value of gtk_widget_activate().
      	(gtk_window_activate_default): Likewise.  Fixes #137008.
      
      	* gtk/gtkfilechooserdialog.c (response_cb): Act on positive
      	response IDs we recognize, rather than bailing out on cancellation
      	ones.  Fixes #136237; patch by Olivier Andrieu
      	<oliv__a@users.sourceforge.net>.
      	(file_chooser_widget_file_activated): If the dialog doesn't have a
      	default widget, try to find a suitable response widget on our own.
      	People should *really* be using gtk_dialog_set_default_response(),
      	but this is to help lazy programmers.
      
      	* gtk/gtkdialog.c (_gtk_dialog_get_response_for_widget): New
      	internal function.
      	(get_response_data): Add a "create" argument so that we don't
      	unconditionally create the response data.
      edf8e6f5
  9. 11 Mar, 2004 1 commit
  10. 08 Mar, 2004 1 commit
    • Federico Mena Quintero's avatar
      Fixes #136105. · 2247fc66
      Federico Mena Quintero authored
      2004-03-08  Federico Mena Quintero  <federico@ximian.com>
      
      	Fixes #136105.
      
      	* gtk/gtkfilechooserembed.h (struct _GtkFileChooserEmbedIface):
      	Added an ::initial_focus() method.
      
      	* gtk/gtkfilechooserembed.c
      	(_gtk_file_chooser_embed_delegate_iface_init): Set the
      	initial_focus method.
      	(delegate_initial_focus): Implement.
      	(_gtk_file_chooser_embed_initial_focus): New function.
      
      	* gtk/gtkfilechooserdialog.c
      	(gtk_file_chooser_dialog_constructor): Call
      	_gtk_file_chooser_embed_initial_focus().
      
      	* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
      	Install the ::initial_focus() handler.
      	(gtk_file_chooser_default_initial_focus): Implement.
      2247fc66
  11. 06 Mar, 2004 1 commit
  12. 05 Mar, 2004 1 commit
    • Federico Mena Quintero's avatar
      New handler. Ask the GtkFileChooser widget if it wants to do something · d64c7c08
      Federico Mena Quintero authored
      2004-03-04  Federico Mena Quintero  <federico@ximian.com>
      
      	* gtk/gtkfilechooserdialog.c (response_cb):  New handler.  Ask the
      	GtkFileChooser widget if it wants to do something special rather
      	than letting us terminate the dialog.
      	(gtk_file_chooser_dialog_init): Connect to "response"; see the
      	comment in the sources to see why we don't override the method in
      	class_init.
      
      	* gtk/gtkfilechooserembed.h (struct _GtkFileChooserEmbedIface):
      	Added a ::should_respond() method.
      
      	* gtk/gtkfilechooserembed.c
      	(_gtk_file_chooser_embed_delegate_iface_init): Add a delegate for ::should_respond().
      	(delegate_should_respond): New delegate.
      	(_gtk_file_chooser_embed_should_respond): New function.
      
      	* gtk/gtkfilechooserdefault.c (set_list_model, create_file_list):
      	Use dashes in signal names rather than underscores.
      	(gtk_file_chooser_default_init): Hook up our ::should_respond() implementation.
      	(gtk_file_chooser_default_should_respond): Implement.  go into a
      	folder rather than responding if we are in File mode and the
      	selected file is a folder.
      	(get_selection): New helper function.
      	(add_bookmark_button_clicked_cb): Use get_selection().
      	(bookmarks_check_add_sensitivity): Likewise.
      	(gtk_file_chooser_default_get_paths): Likewise.
      	(check_save_entry): New helper function.
      	(gtk_file_chooser_default_get_paths): Use check_save_entry().
      	(selection_check): Renamed from selection_is_folders().  Now
      	checks whether the selection is empty, all files, all folders.
      	(bookmarks_check_add_sensitivity): Use selection_check().
      d64c7c08
  13. 03 Mar, 2004 1 commit
    • Jonathan Blandford's avatar
      Split function into realized and unrealized variants, and consolidate the · bb5a4999
      Jonathan Blandford authored
      Tue Mar  2 23:39:55 2004  Jonathan Blandford  <jrb@gnome.org>
      
              * gtk/gtkfilechooserdialog.c
              (file_chooser_widget_default_realized_size_changed): Split
              function into realized and unrealized variants, and consolidate
              the handling fo size-changing and default changing.
      
              * gtk/gtkfilechooserembed.[ch] (gtk_file_chooser_embed_class_init):
              remove resizable-hints-changed, as it just complicated things.
      
              * gtk/gtkfilechooserdefault.c (update_appearance): Don't emit
              resizable-hints-changed.
      bb5a4999
  14. 02 Mar, 2004 1 commit
  15. 01 Mar, 2004 2 commits
  16. 29 Feb, 2004 1 commit
    • Jonathan Blandford's avatar
      Add g_return_if_fail() (_gtk_file_chooser_embed_get_resizable_hints): Add · 7359903e
      Jonathan Blandford authored
      Sun Feb 29 01:51:27 2004  Jonathan Blandford  <jrb@gnome.org>
      
              * gtk/gtkfilechooserembed.c
              (_gtk_file_chooser_embed_get_default_size):  Add g_return_if_fail()
              (_gtk_file_chooser_embed_get_resizable_hints): Add g_return_if_fail()
      
              * gtk/gtkfilechooserdialog.c
              (file_chooser_widget_default_size_changed): Get the correct
              initial size for the dialog.  Also, don't bother with
              gtk_window_set_default_size().  It's not really meaningful.
      
              * gtk/gtkfilechooserdefault.c
              (gtk_file_chooser_default_get_default_size): Get the correct
              spacing for the preview_widget
              (update_preview_widget_visibility): Clear widget field after we
              destroy it.
      7359903e
  17. 27 Feb, 2004 2 commits
    • Jonathan Blandford's avatar
      Whoops. Didn't mean to commit the size change. · c2da3e85
      Jonathan Blandford authored
      Fri Feb 27 18:52:19 2004  Jonathan Blandford  <jrb@redhat.com>
      
              * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_style_set):
              Whoops.  Didn't mean to commit the size change.
      c2da3e85
    • Jonathan Blandford's avatar
      New private interface to help negotiate the default size of the widget. · 0cfdc7fb
      Jonathan Blandford authored
      Fri Feb 27 18:46:27 2004  Jonathan Blandford  <jrb@redhat.com>
      
              * gtk/gtkfilechooserembed.h: New private interface to help
              negotiate the default size of the widget.  Still a bit buggy, but
              better than the old behavior.
      
              * gtk/gtkfilechooserdefault.c: Implement the embed interface.
      
              * gtk/gtkfilechooserwidget.c: Proxy the embed interface.
      
              * gtk/gtkfilechooserdialog.c: Use the embed interface.
      0cfdc7fb
  18. 19 Feb, 2004 2 commits
    • Federico Mena Quintero's avatar
      Chain to the parent's ::finalize() handler. Fixes #134885; caught by Jan · 1d377e1b
      Federico Mena Quintero authored
      2004-02-19  Federico Mena Quintero  <federico@ximian.com>
      
      	* gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_finalize):
      	Chain to the parent's ::finalize() handler.  Fixes #134885; caught
      	by Jan Arne Petersen.
      1d377e1b
    • Alexander Larsson's avatar
      Remove old file-system property. Add new file-system-backend string · 824548f1
      Alexander Larsson authored
      2004-02-19  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/gtkfilechooser.c: (gtk_file_chooser_class_init):
      	* gtk/gtkfilechooserutils.c:
      	* gtk/gtkfilechooserutils.h:
      	* gtk/gtkfilechooserwidget.c:
      	Remove old file-system property.
      	Add new file-system-backend string property
      
      	* gtk/gtkfilechooserdefault.[ch]:
      	Handle the file-system-backend property
      
      	* gtk/gtkfilechooserdialog.[ch]:
      	(gtk_file_chooser_dialog_new_with_backend):
      	Remove old file-system property.
      	Add new file-system-backend string property
      	Add new function gtk_file_chooser_dialog_new_with_backend
      
      	* gtk/gtkfilesystem.c:
      	* gtk/gtkfilesystem.h:
      	Add filesystem module support.
      824548f1
  19. 18 Feb, 2004 1 commit
  20. 14 Feb, 2004 1 commit
    • Federico Mena Quintero's avatar
      Fix #129020. · fff49996
      Federico Mena Quintero authored
      2004-02-13  Federico Mena Quintero  <federico@ximian.com>
      
      	Fix #129020.
      
      	* gtk/gtkfilechooserdialog.c
      	(set_default_size): New function, sets a reasonable default size
      	for the window.
      	(gtk_file_chooser_dialog_realize): New function, call
      	set_default_size().
      	(gtk_file_chooser_dialog_style_set): Likewise.
      	(gtk_file_chooser_dialog_screen_changed): Likewise.
      
      	* tests/testfilechooser.c (main): Don't set a default size for the
      	dialog.
      fff49996
  21. 30 Jan, 2004 1 commit
    • Federico Mena Quintero's avatar
      Fix #129872, based on a patch by Jan Arne Petersen <jpetersen@uni-bonn.de> · 275cf046
      Federico Mena Quintero authored
      2004-01-30  Federico Mena Quintero  <federico@ximian.com>
      
      	Fix #129872, based on a patch by Jan Arne Petersen
      	<jpetersen@uni-bonn.de>
      
      	* gtk/gtkfilesystemunix.c (gtk_file_system_unix_list_bookmarks):
      	Implement.
      	(gtk_file_system_unix_add_bookmark): Implement.
      	(gtk_file_system_unix_remove_bookmark): Implement.
      
      2004-01-29  Federico Mena Quintero  <federico@ximian.com>
      
      	Fixes #132693.
      
      	* gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_parent): Don't
      	use filename_from_path().  Also, check that the filename is
      	absolute.
      	(gtk_file_system_unix_get_folder): Likewise.
      	(gtk_file_system_unix_create_folder): Likewise.
      	(gtk_file_system_unix_make_path): Likewise.
      	(gtk_file_system_unix_parse): Likewise.
      	(gtk_file_folder_unix_get_info): Likewise.
      	(filename_from_path): Removed.
      275cf046
  22. 19 Nov, 2003 1 commit
  23. 08 Nov, 2003 1 commit
    • Matthias Clasen's avatar
      Mark as 2.4 additions. · 6e6d780b
      Matthias Clasen authored
      Sat Nov  8 01:50:17 2003  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkicontheme.c:
      	* gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new):
      	* gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new):
      	* gtk/gtkfilechooser.c (gtk_file_chooser_[un]select_all): Mark as
      	2.4 additions.
      6e6d780b
  24. 23 Oct, 2003 2 commits
    • Federico Mena Quintero's avatar
      Fixed docs. (gtk_file_chooser_remove_filter): Likewise. · e475c268
      Federico Mena Quintero authored
      2003-10-23  Federico Mena Quintero  <federico@ximian.com>
      
      	* gtk/gtkfilechooser.c (gtk_file_chooser_get_preview_uri): Fixed docs.
      	(gtk_file_chooser_remove_filter): Likewise.
      	(gtk_file_chooser_select_all): Added docs.
      	(gtk_file_chooser_unselect_all): Likewise.
      
      	* gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): Added docs.
      
      	* gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): Added docs.
      e475c268
    • Owen Taylor's avatar
      gtk/gtkfilechooserutils.c gtk/gtkfilechooserprivate.[ch]: Basic framework · b3bae3b4
      Owen Taylor authored
      Wed Oct 22 23:20:04 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkfilechooser.[ch] gtk/gtkfilefilter.[ch]
              gtk/gtkfilechooserwidget.[ch] gtk/gtkfilechooserdialog.[ch]:
              gtk/gtkfilechooserutils.c gtk/gtkfilechooserprivate.[ch]:
              Basic framework for the new file selector widget.
      
              * gtk/gtkfilechooserdefault.[ch] gtk/gtkcellrenderersep.[ch]
              gtk/gtkfilechooserentry.[ch] gtk/gtkfilesystemmodel.[ch]:
              Initial implementation of the GtkFileChooser user interface.
      
              * gtk/gtkfilesystemunix.[ch]: GtkFileSystem implementation
              for Unix files.
      
              * configure.in gtk/Makefile.am gtk/xdgmime: Build code
              for freedesktop.org MIME system on Unix.
      
              * tests/testfilechooser.c: Test program for GtkFileChooser
      
              * tests/prop-editor.c: Add support for properties on interfaces.
      b3bae3b4
  25. 11 Sep, 2003 1 commit
    • Federico Mena Quintero's avatar
      Added an API point about needing a way to fetch the hpaned position so we · 9044d774
      Federico Mena Quintero authored
      2003-09-10  Federico Mena Quintero  <federico@ximian.com>
      
      	* TODO: Added an API point about needing a way to fetch the hpaned
      	position so we can save it.
      
      	* gtkfilechooser.c (_gtk_file_chooser_get_paths): Fixed API docs.
      	(gtk_file_chooser_get_uris): Likewise.
      	(gtk_file_chooser_get_filenames): Likewise.
      
      	* gtkfilechooserdialog.c (file_chooser_widget_file_activated): New
      	callback, calls gtk_window_activate_default().
      
      	* testfilechooser.c (response_cb): Print the selected files if the
      	user clicks OK.
      9044d774
  26. 16 Jul, 2003 1 commit
    • Owen Taylor's avatar
      auto-ize. · 7e54248b
      Owen Taylor authored
      Wed Jul 16 16:50:31 2003  Owen Taylor  <otaylor@redhat.com>
      
              * configure.ac Makefile.am: auto-ize.
      
              * xdgmime/: Add freedesktop.org MIME spec implementatin
              by Jonathan Blandford.
      
              * gtkfilesystem.[ch]: Add gtk_file_info_render_icon()
              gtk_file_info_set/get_icon_type to do icon handling
              based on MIME type. Add a simple icon caching system.
      
              * gtkfilesystemgnomevfs.c: Implement ensure_types()
              so that extending the set of types for a loaded
              directory works. Set the MIME type to get the default
              icon handling.
      
              * gtkfilesystemunix.c: Look up the MIME type using
              xdgmime.
      
              * gtkfilechooserimpldefault.c: Display icons in the list.
      7e54248b
  27. 11 Jul, 2003 1 commit
    • Owen Taylor's avatar
      Add gtk_file_chooser_set_current_name() to set the current entry contents. · 7f8ae32c
      Owen Taylor authored
      Fri Jul 11 14:37:07 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtkfilechooser.[ch] gtkfilechooserprivate.h
              gtkfilechooserimpldefault.c: Add
              gtk_file_chooser_set_current_name() to set the current
              entry contents.
      
              * *.c: Consistently use '-' not '_' in property names and
              signal names.
      
              * gtkfilechooser.c: Document all exported functions.
      7f8ae32c
  28. 26 Mar, 2003 1 commit
  29. 21 Mar, 2003 1 commit