William Jon McCann
6e22c4cfde
Fix some regressions from stock migration
2013-06-25 12:39:19 -04:00
William Jon McCann
fc71cbe5a6
Remove most of the stock API usage from the tests
...
With the exception of GtkActions and the tests for stock items.
2013-06-24 19:53:08 -04:00
Javier Jardón
9d0febc9a6
Change FSF Address
2012-02-27 17:06:11 +00:00
Matthias Clasen
e5c0d40d94
Make GtkFileChooserButton behave as expected when expanding
2010-11-08 11:31:03 +09:00
Michael Natterer
260ccdfebe
gtk: remove "gboolean homogeneous" from gtk_box_new()
...
Because it's FALSE in virtually all use cases.
2010-11-02 12:04:35 +09:00
Javier Jardón
c15ef6405c
Use gtk_box_new() instead gtk_[v|h]box_new()
2010-10-30 17:37:03 +09:00
Matthias Clasen
76b21033f9
Adapt tests to dialog api change
2010-09-02 09:31:54 -04:00
Javier Jardón
7f2cc85db9
Use accessor functions to access GtkDialog
2010-07-13 19:40:47 +02:00
Javier Jardón
232fca6e95
Fix compilation warning
...
Use g_get_current_dir() instead getcwd()
2009-10-20 20:38:14 +02:00
Matthias Clasen
544899759b
Don't use deprecated API. Reported by Tobias Mueller
...
* tests/testfilechooserbutton.c: Don't use deprecated API.
Reported by Tobias Mueller
svn path=/trunk/; revision=22422
2009-02-28 05:38:25 +00:00
Matthias Clasen
bae6c5576f
Add an "Unselect all" button
...
svn path=/trunk/; revision=20832
2008-07-15 05:19:23 +00:00
Johan Dahlin
d97cdbdf53
Include "config.h" instead of <config.h> Command used: find -name
...
2008-06-21 Johan Dahlin <jdahlin@async.com.br>
* *.[ch]: Include "config.h" instead of <config.h>
Command used:
find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g'
Rubberstamped by Mitch and Tim
svn path=/trunk/; revision=20669
2008-06-22 14:28:52 +00:00
Tor Lillqvist
01d372422d
Don't pass NULL for %s to g_message(). (main): Drop unnecessary call to
...
2008-03-20 Tor Lillqvist <tml@novell.com>
* tests/testfilechooserbutton.c (chooser_update_preview_cb): Don't
pass NULL for %s to g_message().
(main): Drop unnecessary call to gtk_widget_destroy().
svn path=/trunk/; revision=19908
2008-03-20 03:21:41 +00:00
Hans Breuer
b546df99ea
added a bunch of tests use g_snprintf() don't include unistd.h twice.
...
2006-01-06 Hans Breuer <hans@breuer.org>
* tests/makefile.msc : added a bunch of tests
* tests/testcellrenderertext.c : use g_snprintf()
* tests/testfilechooserbutton.c : don't include unistd.h twice.
Removed the unconditional one and added direct.h for G_OS_WIN32
2006-01-06 12:05:28 +00:00
James M. Cape
b418bf3aa4
Use a GtkComboBox in SELECT_FOLDER mode ( #157726 ).
...
2004-12-15 James M. Cape <jcape@ignore-your.tv>
* gtk/gtkfilechooserbutton.c (struct _GtkFileChooserButtonPrivate)
(gtk_file_chooser_button_init)
(gtk_file_chooser_button_file_chooser_iface_init)
(gtk_file_chooser_button_add_shortcut_folder)
(gtk_file_chooser_button_remove_shortcut_folder)
(gtk_file_chooser_button_constructor)
(gtk_file_chooser_button_set_property)
(gtk_file_chooser_button_destroy)
(gtk_file_chooser_button_finalize)
(get_icon_theme) (get_display_name_for_path) (model_get_type_position)
(model_free_row_data) (model_add_special) (model_add_other)
(model_add_volumes) (model_add_bookmarks)
(model_update_current_folder) (model_remove_rows)
(filter_model_visible_func) (combo_box_row_separator_func)
(name_cell_data_func) (update_combo_box) (fs_volumes_changed_cb)
(fs_bookmarks_changed_cb) (combo_box_changed_cb)
(change_icon_size): Use a GtkComboBox in SELECT_FOLDER mode (#157726 ).
* gtk/gtkfilechooserbutton.c:
* gtk/gtkfilechooserbutton.h (gtk_file_chooser_button_new)
(gtk_file_chooser_button_new_with_backend): Add @action to constructors
to match other GtkFileChooser impls. API CHANGE.
* docs/tools/widgets.c (create_file_button):
* tests/testfilechooserbutton.c (main): Update callers.
* docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Reflect API
change.
* tests/testfilechooserbutton.c: Add LGPL license.
(main): Added GOption parser for --backend and --right-to-left cmd line
args.
(add_pwds_parent_as_shortcut_clicked_cb)
(del_pwds_parent_as_shortcut_clicked_cb) (tests_button_clicked_cb):
Add shortcut_folders test.
(chooser_current_folder_changed_cb) (chooser_selection_changed_cb)
(chooser_file_activated_cb) (chooser_update_preview_cb): Print URIS,
not filenames.
2004-12-15 14:58:39 +00:00
Matthias Clasen
24295f3a5f
Rename a local variable to avoid a conflict. ( #161109 , Robert Ögren) 1
...
2004-12-12 Matthias Clasen <mclasen@redhat.com>
* tests/testfilechooserbutton.c (tests_button_clicked_cb): Rename
a local variable to avoid a conflict. (#161109 , Robert Ögren)
1
2004-12-13 03:59:39 +00:00
James M. Cape
1b45c64014
removed "GtkFileChooserButton:active" property and getter/setter.
...
2004-11-30 James M. Cape <jcape@ignore-your.tv>
* gtk/gtkfilechooserbutton.h (gtk_file_chooser_button_get_active)
(gtk_file_chooser_button_set_active):
* gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_class_init)
(gtk_file_chooser_button_get_active)
(gtk_file_chooser_button_set_active):
* docs/reference/gtk/gtk-sections.txt:
* docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml:
* gtk/gtk.symbols: removed "GtkFileChooserButton:active" property and
getter/setter.
* gtk/gtkfilechooserbutton.c (struct _GtkFileChooserButtonPrivate)
(button_toggled_cb) (dialog_response_cb) (button_notify_active_cb)
(gtk_file_chooser_button_init) (button_clicked_cb)
(gtk_file_chooser_button_show): Use a GtkButton instead of a
GtkToggleButton.
(struct _GtkFileChooserButtonPrivate)
(gtk_file_chooser_button_destroy) (gtk_file_chooser_button_style_set)
(gtk_file_chooser_button_screen_changed): Don't bother with the
(remove_settings_signal) (settings_notify_cb) (check_icon_theme):
Don't use GtkSettings at all, just call change_icon_theme() directly.
(struct _GtkFileChooserButtonPrivate)
(gtk_file_chooser_button_init)
(gtk_file_chooser_button_drag_data_received)
(gtk_file_chooser_button_mnemonic_activate)
(gtk_file_chooser_button_set_width_chars)
(gtk_file_chooser_button_get_width_chars)
(entry_changed_cb) (update_idler) (update_entry) (update_dialog)
(dialog_selection_changed_cb) (dialog_response_cb)
(entry_size_allocate_cb): Remove all references to the now-defunct
entry, store the old path (to support "Cancel") in an instance member.
(update_label_and_image) (update_label) (update_image)
(gtk_file_chooser_button_init) (dialog_response_cb)
(dialog_selection_changed_cb): Merge label/image updates, only display
the filename (not the whole path, fixes #157725 ).
(struct _GtkFileChooserButtonPrivate)
(dialog_selection_changed_cb)
(dialog_selection_changed_proxy_cb): Merge "selection-changed"
handlers, block while dialog is visible (fixes #158482 ).
* tests/testfilechooserbutton.c (delete_event_cb)
(properties_button_clicked_cb) (print_selected_path_clicked_cb)
(tests_button_clicked_cb) (main): Add per-chooser "tests" window,
don't delete on WM close, update properties_button_clicked_cb()
"delete-event" callback.
2004-11-30 21:06:48 +00:00
Matthias Clasen
47ee9667e1
Disable the SAVE and CREATE_FOLDER modes. ( #157675 , Christian Persch)
...
2004-11-08 Matthias Clasen <mclasen@redhat.com>
* tests/testfilechooserbutton.c (main): Disable the SAVE
and CREATE_FOLDER modes. (#157675 , Christian Persch)
2004-11-08 20:15:45 +00:00
James M. Cape
ede3c39918
Rework of GtkFileChooserButton, some cleanups. Fixes #154388 , #154390 ,
...
2004-10-25 James M. Cape <jcape@ignore-your.tv>
Rework of GtkFileChooserButton, some cleanups. Fixes #154388 ,
#154390 , #154390 , #156272 .
* docs/reference/gtk/gtk-docs.sgml: Moved GtkFileChooserButton
below GtkFileChooser.
* docs/reference/gtk/gtk-sections.txt: Added
gtk_file_chooser_button_get_width_chars(),
gtk_file_chooser_button_set_width_chars(),
gtk_label_set_width_chars(), gtk_label_get_width_chars().
* docs/reference/gtk/gtk.types: Added
gtk_cell_renderer_combo_get_type,
gtk_cell_view_get_type,
gtk_text_iter_get_type.
* docs/reference/gtk/tmpl/gtkaboutdialog.sgml: Add
"logo-icon-name" property.
* docs/reference/gtk/tmpl/gtkcellview.sgml: Updates for
properties
(b/c of get_type() inclusion above).
* docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml:
* docs/reference/gtk/tmpl/gtklabel.sgml: Add "width-chars"
property,
getters/setters.
* docs/reference/gtk/tmpl/gtkcellrenderercombo.sgml: Added.
* gtk/gtkentrycompletion.c:
(_gtk_entry_completion_popdown): Don't show if the entry isn't
mapped.
* gtk/gtkfilechooserbutton.[c,h]: (*): About 45%
rewritten, adds "width-chars" property, icons, working save
modes, volume/Home/Desktop friendly-naming support.
* gtk/gtklabel.[c,h]:
(gtk_label_class_init), (gtk_label_init),
(gtk_label_get_property), (gtk_label_set_property),
(gtk_label_get_width_chars), (gtk_label_set_width_chars),
(gtk_label_size_request): Add "width-chars" property.
* tests/testfilechooserbutton.c: Update, use 4 different buttons
for the different ACTIONs.
* gtk/.cvsignore: Ignore gtk-update-icon-cache.
* tests/.cvsignore: Ignore testimage.
2004-10-26 04:29:56 +00:00
Matthias Clasen
542a674e7c
2.5.3
2004-09-19 05:40:00 +00:00
Matthias Clasen
3cc0ae605a
Use g_message() throughout, add RTL envar for rtl testing.
...
2004-08-17 Matthias Clasen <mclasen@redhat.com>
* tests/testfilechooserbutton.c: Use g_message() throughout, add RTL envar for
rtl testing.
* gtk/gtkfilechooserbutton.c: Get rid of HAVE_CONFIG_H.
(gtk_file_chooser_button_init): Use gtk_drag_dest_add_text_targets().
(gtk_file_chooser_button_drag_data_received): Use gtk_selection_data_get_text().
(gtk_file_chooser_button_set_dialog): _gtk_file_chooser_entry_set_base_folder()
seems to expect a path, not an uri.
(update_dialog): Handle g_filename_from_uri() returning NULL, don't free
info if it is NULL.
* gtk/gtkfilechooserbutton.h: Minor stylistic changes.
2004-08-17 16:52:04 +00:00
Matthias Clasen
a3aa10e5a6
New widget to go along with GtkFontButton and GtkColorButton for use in
...
2004-08-17 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserbutton.[hc]: New widget to go along with
GtkFontButton and GtkColorButton for use in preference dialogs.
Replaces GnomeFileEntry. (#148108 , James M. Cape)
* gtk/gtk.h: Include gtkfilechooserbutton.h
* gtk/Makefile.am (gtk_public_h_sources): Add gtkfilechooserbutton.h
(gtk_c_sources): Add gtkfilechooserbutton.c
* gtk/gtk.symbols: Add the GtkFileChooserButton symbols.
* gtk/gtkfilechooserutils.[hc]: Make the delegate quark available.
* gtk/gtkfilechooserentry.[hc] (_gtk_file_chooser_entry_new): Allow
to suppress tab-eating using the new eat_tabs argument. Adjust all
callers.
* tests/testfilechooserbutton.c: Test for GtkFileChooserButton.
* tests/Makefile.am (noinst_PROGRAMS): Add testfilechooserbutton
2004-08-17 16:06:39 +00:00