Javier Jardón
2a9d299aa3
docs: Use gtk_widget_get_preferred_size() instead gtk_size_request_get_preferred_size()
...
GtkSizeRequest interface is now merged in GtkWidget
2010-10-03 03:42:31 +02:00
Benjamin Otte
d9c9259861
Move GtkSizeRequest into GtkWidget
...
It doesn't make sense to keep them separate as GtkSizeRequest requires a
GtkWidget and GtkWidget implements GtkSizeRequest, so you can never have
one without the other.
It also makes the code a lot easier because no casts are required when
calling functions.
Also, the names would translate to gtk_widget_get_width() and people
agreed that this would be a too generic name, so a "preferred" was added
to the names.
So this patch moves the functions:
gtk_size_request_get_request_mode() => gtk_widget_get_request_mode()
gtk_size_request_get_width() => gtk_widget_get_preferred_width()
gtk_size_request_get_height() => gtk_widget_get_preferred_height()
gtk_size_request_get_size() => gtk_widget_get_preferred_size()
gtk_size_request_get_width_for_height() =>
gtk_widget_get_preferred_width_for_height()
gtk_size_request_get_height_for_width() =>
gtk_widget_get_preferred_height_for_width()
... and moves the corresponding vfuncs to the GtkWidgetClass.
The patch also renames the implementations of the vfuncs in widgets to
include the word "preferrred".
2010-09-26 15:11:45 +02:00
Javier Jardón
b140884fec
Use gtk_size_request_get_size() instead deprecated gtk_widget_size_request()
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629598
Signed-off-by: Javier Jardón <jjardon@gnome.org>
Signed-off-by: Tristan Van Berkom <tristanvb@openismus.com>
2010-09-15 03:02:58 +02:00
Matthias Clasen
7447ef0fc2
Make 3.0 parallel-installable to 2.x
...
In particular, rename
- libraries to lib*-3.0.so
- pc files to *-3.0.pc
- include paths to /usr/include/gtk-3.0/*
- module paths to /usr/lib/gtk-3.0/*
- rc files names to gtk-3.0/gtkrc
- commandline utilities to *-3.0
- adjust documentation
Also change the install location for unix-print headers to
/usr/include/gtk-3.0/unix-print/gtk.
2010-05-08 01:18:53 -04:00
Javier Jardón
b5917e7a6f
Remove deprecated code: GtkFileChooserButton
2010-05-03 01:48:45 +02:00
Matthias Clasen
6921206dd8
2.11.0
...
svn path=/trunk/; revision=17903
2007-05-24 05:51:56 +00:00
Matthias Clasen
f2685563ac
Updates
2005-12-20 05:47:43 +00:00
Matthias Clasen
58a1af804c
2.7.0
2005-06-20 22:06:27 +00:00
James M. Cape
977a557a67
Use default title if NULL is passed.
...
2005-01-06 James M. Cape <jcape@ignore-your.tv>
* gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new)
(gtk_file_chooser_button_new_with_backend): Use default title if
NULL is passed.
* docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples
match API.
2005-01-06 06:25:30 +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
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
52a7d49bcb
Don't support CREATE_FOLDER and SAVE for now. UI authorities object to it.
...
2004-11-06 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_set_property):
Don't support CREATE_FOLDER and SAVE for now. UI authorities
object to it. (#157384 , Seth Nickell)
2004-11-07 04:57:04 +00:00
Matthias Clasen
0b77c1ae76
*** empty log message ***
2004-11-01 20:25:34 +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
Jonathan Blandford
4614cffc73
Add GtkAboutDialog and GtkFileChooserButton
...
Sun Oct 24 02:54:36 2004 Jonathan Blandford <jrb@redhat.com>
* gtk/gtk.types: Add GtkAboutDialog and GtkFileChooserButton
* gtk/tmpl/GtkFileChooserButton.sgml: Write docs
* gtk/tmpl/GtkListStore.sgml: Update performance comment now that
we use GSequence.
* gtk/visual_index.xml: Fix up a couple of errors.
* gtk/images/*png: update
Sun Oct 24 02:56:43 2004 Jonathan Blandford <jrb@redhat.com>
* docs/tools/widgets.c: Update GtkFileChooserButton doc shot.
2004-10-24 07:05:00 +00:00
Matthias Clasen
342f4b505e
Add missing short descriptions
2004-10-11 20:15:30 +00:00
Matthias Clasen
17cf070553
2.5.2
2004-08-25 16:21:15 +00:00
Matthias Clasen
3a76d4848b
ADd GtkFileChooserButton docs.
2004-08-17 16:21:46 +00:00