summaryrefslogtreecommitdiff
path: root/gtk/gtkrecentchooserdefault.c
Commit message (Collapse)AuthorAgeFilesLines
* Make GtkRecentChooser use GtkStyleContextCarlos Garnacho2011-01-041-1/+5
|
* gtk: Use g_object_unref instead of gdk_cursor_unrefBenjamin Otte2010-12-211-1/+1
|
* gtk: remove "gboolean homogeneous" from gtk_box_new()Michael Natterer2010-11-021-2/+2
| | | | Because it's FALSE in virtually all use cases.
* Use gtk_box_new() instead gtk_[v|h]box_new()Javier Jardón2010-10-301-1/+1
|
* recent-chooser: Use gtk_recent_info_get_gicon()Christian Persch2010-10-221-15/+10
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=617174
* Use the new GtkComboBoxText APIJavier Jardón2010-10-151-5/+5
| | | | | Also remove mentions of the old text convenience API from the docs, and point to GtkComboBoxText instead.
* Move GtkSizeRequest into GtkWidgetBenjamin Otte2010-09-261-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | 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".
* Use gtk_size_request_get_size() instead deprecated gtk_widget_size_request()Javier Jardón2010-09-151-2/+5
| | | | | | | 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>
* Use gtk_window_has_group() to know if the window has an explicit window group.Javier Jardón2010-08-241-4/+3
| | | | | | | | | gtk_window_get_group() never returns NULL; if the window isn't in a group, a default window group is returned instead. Use gtk_window_has_group() instead. This fixes some previous commits to use accessors to access GtkWindow. Reported by Philip Withnall in bug https://bugzilla.gnome.org/show_bug.cgi?id=627828
* gtk/gtkrecentchooserdefault.c: Use accessor functions to access GtkWindowJavier Jardón2010-08-231-2/+4
|
* gtk/gtkrecentchooserdefault.c: use accessor functions to access GtkWidgetJavier Jardón2010-08-221-6/+11
|
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Deprecate widget flag: GTK_WIDGET_REALIZEDJavier Jardón2010-03-031-2/+2
| | | | | | Use gtk_widget_get_realized() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Deprecate flag macros for toplevel, state, no window and composite childChristian Dywan2010-01-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Deprecate widget flag macros GTK_WIDGET_STATE, GTK_WIDGET_SAVED_STATE, GTK_WIDGET_FLAGS, GTK_WIDGET_TOPLEVEL, GTK_WIDGET_NO_WINDOW and GTK_WIDGET_COMPOSITE_CHILD. Also deprecate the type macros GTK_WIDGET_TYPE, GTK_OBJECT_TYPE_NAME and GTK_OBJECT_TYPE which have become redundant. Instances of GTK_WIDGET_TOPLEVEL are replaced with gtk_widget_is_toplevel, GTK_WIDGET_TYPE is replaced with G_OBJECT_TYPE, GTK_WIDGET_COMPOSITE_CHILD is replaced with use of the "composite-child" property and uses of GTK_WIDGET_NO_WINDOW are adjusted to use gtk_widget_get_has_window. Uses of GTK_WIDGET_SAVED_STATE and GTK_WIDGET_FLAGS inside GtkWidget are changed to direct flag usage. Documentation is updated to refer to gtk_widget_set_has_window and gtk_widget_get_has_window. Gail and tests are updated as well. Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Don't leak a GtkRecentInfo. Found by Tommi RantalaMatthias Clasen2009-02-281-0/+1
| | | | | | | | | * gtk/gtkrecentchooserdefault.c (copy_activated_cb): Don't leak a GtkRecentInfo. Found by Tommi Rantala svn path=/trunk/; revision=22418
* Rename gtk_activatable_reset to gtk_activatable_sync_action_properties,Matthias Clasen2009-02-221-15/+15
| | | | | | | | | | * gtk/gtk.symbols: * gtk/gtkactivatable.[hc]: Rename gtk_activatable_reset to gtk_activatable_sync_action_properties, since the previous name was deemed too generic. Update all implementations. svn path=/trunk/; revision=22389
* i Bug 560228 – Add "action-controller" property to GtkWidgetClassMatthias Clasen2009-01-231-3/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rework the way actions and proxies interact, to make the interaction less ad hoc, more extensible, and better suited for support in GUI builders like glade. To be used as a proxy, a widget must now implement the GtkActivatable interface, and GtkActivatable implementations are responsible for syncing their appearance with the action and for activating the action. All the widgets that are commonly used as proxies implement GtkActivatable now. Patch by Tristan van Berkom. * gtk/gtkactivatable.[hc]: The GtkActivatable interface. * gtk/gtkbutton.c: * gtk/gtktogglebutton.c: * gtk/gtktoolitem.c: * gtk/gtktoolbutton.c: * gtk/gtktoggletoolbutton.c: * gtk/gtkmenuitem.c: * gtk/gtkcheckmenuitem.c: * gtk/gtkimagemenuitem.c: * gtk/gtkradiomenuitem.c: * gtk/gtkrecentchooserprivate.h: * gtk/gtkrecentchooser.c: * gtk/gtkrecentchooserdefault.c: * gtk/gtkrecentchoosermenu.c: Implement GtkActivatable. * gtk/gtkaction.[hc]: Move appearance synchronization to GtkActivatable implementations. * gtk/gtkradioaction.c: * gtk/gtkrecentaction.c: * gtk/gtktoggleaction.c: * gtk/gtkactiongroup.c: Adapt. * gtk/gtk.h: Include gtkactivatable.h * gtk/gtk.symbols: Add new functions svn path=/trunk/; revision=22195
* Bug 556954 – gtk+/gtk/gtkrecentchooserdefault.c: mismatching allocationMatthias Clasen2008-10-241-1/+1
| | | | | | | | | | | | 2008-10-24 Matthias Clasen <mclasen@redhat.com> Bug 556954 – gtk+/gtk/gtkrecentchooserdefault.c: mismatching allocation and deallocation * gtk/gtkrecentchooserdefault.c (remove_selected_from_list): Don't free a strdup'ed string by g_free. Pointed out by Daniel Marjamäki svn path=/trunk/; revision=21708
* gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkentry.cMichael Natterer2008-08-121-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* gtk/gtkdnd-quartz.c gtk/gtkdnd.c gtk/gtkentry.c gtk/gtkfilesel.cSven Neumann2008-08-111-2/+2
| | | | | | | | | | | | | | | | | | | | 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
* Revert name changeCody Russell2008-07-011-1/+1
| | | | svn path=/trunk/; revision=20724
* Practically everything changed.Cody Russell2008-06-301-1/+1
| | | | | | | | | | | | | 2008-06-30 Cody Russell <bratsche@gnome.org> * Practically everything changed. Change all references of GIMP Toolkit (and variations of it) to GTK+ Toolkit, showing no mercy at all to our beloved ancestry. (#540529) svn path=/trunk/; revision=20709
* gtk/gtkicontheme.h include <gdk/gdk.h> instead of <gdk/gdkscreen.h>.Michael Natterer2008-04-181-2/+0
| | | | | | | | | | | | | | | | | | | 2008-04-18 Michael Natterer <mitch@imendio.com> * gtk/gtkicontheme.h * gtk/gtkrecentmanager.h: include <gdk/gdk.h> instead of <gdk/gdkscreen.h>. * gtk/gtkbuilderparser.c * gtk/gtklinkbutton.c * gtk/gtkpreview.c * gtk/gtkrecentchooserdefault.c * gtk/gtkrecentchoosermenu.c * modules/input/gtkimcontextthai.c: remove inclusion of single files from gdk, none of the includes was actually needed. svn path=/trunk/; revision=20023
* Use gtk_drag_*_add_{text,uri}_targets instead of hardcoded target tables.Matthias Clasen2008-02-161-20/+9
| | | | | | | | | | | | | | 2008-02-15 Matthias Clasen <mclasen@redhat.com> * gtk/gtkentry.c: * gtk/gtkfilesel.c: * gtk/gtklabel.c: * gtk/gtkpathbar.c: Use gtk_drag_*_add_{text,uri}_targets instead of hardcoded target tables. (#516092, Christian Persch) svn path=/trunk/; revision=19590
* Set the default value of the :show-not-found property to TRUE, as everyEmmanuele Bassi2008-02-121-1/+1
| | | | | | | | | | | | | | | 2008-02-12 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkrecentchooser.c: (gtk_recent_chooser_class_init): Set the default value of the :show-not-found property to TRUE, as every implementation sets it to TRUE already. * gtk/gtkrecentchooserdefault.c: (_gtk_recent_chooser_default_init): Sync show_tips to the default value of the :show-tips property. svn path=/trunk/; revision=19535
* Port the GtkRecentChooser default implementation widget to the newEmmanuele Bassi2007-07-231-36/+66
| | | | | | | | | | | | | | | | | | 2007-07-23 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkrecentchooserdefault.c: Port the GtkRecentChooser default implementation widget to the new tooltips API, and make it look like the GtkFileChooser widget in recent files mode (move the full path from the widget to a tooltip on the row) to improve consistency. * gtk/gtkrecentchoosermenu.c: Port the GtkRecentChooserMenu widget to the new tooltips API. * tests/testrecentchooser.c: * tests/testrecentchoosermenu.c: Exercise the tooltips code paths. svn path=/trunk/; revision=18526
* Apply a patch by Emmanuele Bassi to limit the number of shown recentMatthias Clasen2007-07-201-2/+30
| | | | | | | | | | | | | | | | | | | | | | | | 2007-07-20 Matthias Clasen <mclasen@redhat.com> Apply a patch by Emmanuele Bassi to limit the number of shown recent files. (#439715) * gtk/gtksettings.c: Add a setting for the number of recent files to display by default. * gtk/gtkrecentchooserdefault.c: * gtk/gtkfilechooserdefault.c: Respect the limit. * gtk/gtkrecentmanager.c: Remove the poll timeout in dispose, and do not stat more often than every 5 seconds. * gtk/gtkrecentchooserutils.c: * gtk/gtkrecentchoosermenu.c: Cleanups * tests/testrecentchoosermenu.c: Test limits. svn path=/trunk/; revision=18510
* Avoid gratitious use of g_strdup_printf().Matthias Clasen2007-07-131-1/+1
| | | | | | | | | | | | | | | 2007-07-13 Matthias Clasen <mclasen@redhat.com> * gtk/gtkrecentmanager.c (get_uri_shortname_for_display): Avoid gratitious use of g_strdup_printf(). * gtk/gtkrecentchooserdefault.c: * gtk/gtkrecentchoosermenu.c: Mark some strings for translation. (#439480, Murray Cumming) svn path=/trunk/; revision=18465
* Escape markup entities in the name and URI before displaying them.Emmanuele Bassi2007-06-291-5/+10
| | | | | | | | | 2007-06-29 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkrecentchooserdefault.c (recent_meta_data_func): Escape markup entities in the name and URI before displaying them. svn path=/trunk/; revision=18289
* Use a static variable to hold the singleton and remove the code that bindsEmmanuele Bassi2007-06-191-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-19 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkrecentmanager.c: Use a static variable to hold the singleton and remove the code that binds a recent manager to a GdkScreen. (gtk_recent_manager_set_screen): Make it a NOOP. (gtk_recent_manager_get_for_screen): Proxy for gtk_recent_manager_get_default(). * gtk/gtk.symbols: * gtk/gtkrecentmanager.h: Deprecate gtk_recent_manager_set_screen() and gtk_recent_manager_get_for_screen(). * gtk/gtkmain.c: Force a synchronisation of the GtkRecentManager singleton (if any) when reaching main loop depth of 0. * gtk/gtkrecentchooserdefault.c: (gtk_recent_chooser_default_dispose): Disconnect the changed signal only if we have a manager and we are connected to it. (set_recent_manager): Ditto. * README.in: Document the deprecations. svn path=/trunk/; revision=18184
* Reset the state on dispose.Emmanuele Bassi2007-05-181-1/+3
| | | | | | | | | | | | | 2007-05-18 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkrecentchooserdefault.c: (gtk_recent_chooser_default_dispose): Reset the state on dispose. (cleanup_after_load): load_id != 0 && load_state == LOAD_EMPTY is a valid state, if the main loop never had the chance to properly spin at least once. (#438671) svn path=/trunk/; revision=17866
* Mark string for translation. (#439437)Emmanuele Bassi2007-05-181-15/+7
| | | | | | | | | 2007-05-18 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkrecentchooserdefault.c (recent_meta_data_func): Mark string for translation. (#439437) svn path=/trunk/; revision=17865
* Move filtering of the recent files list into the shared implementation; doEmmanuele Bassi2007-03-151-141/+17
| | | | | | | | | | | | | | | | | | | | | 2007-03-15 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkrecentchooserprivate.h: * gtk/gtkrecentchooserutils.c: Move filtering of the recent files list into the shared implementation; do the filtering before the sorting, so that we always clamp on the desired size. (#418219) * gtk/gtkrecentchoosermenu.c: Remove the filtering of the list, as it's already been done. * gtk/gtkrecentchooserdefault.c: Ditto; also remove the GtkTreeModelFilter: just reload the view if the sorting and filtering properties change. * gtk/testrecentchoosermenu.c: Exercise the limit property. svn path=/trunk/; revision=17516
* Various clean ups in the GtkRecent code. (see #338843)Emmanuele Bassi2007-03-141-149/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-03-14 Emmanuele Bassi <ebassi@gnome.org> Various clean ups in the GtkRecent code. (see #338843) * gtk/gtkrecentchooserdefault.c: * gtk/gtkrecentchoosermenu.c: * gtk/gtkrecentchooserprivate.h: * gtk/gtkrecentchooserutils.c: Move the recent chooser function for getting the sorted and clamped list of recent files from the manager outside the implementations. * gtk/gtkrecentchooserdefault.c (chooser_set_sort_type): Repopulate the list when the sorting order changes. (gtk_recent_chooser_default_dispose), (gtk_recent_chooser_default_finalize): Move object unref and source removal from finalize to dispose. * gtk/gtkrecentchooser.c (gtk_recent_chooser_type_init): Relax the prerequisite for the GtkRecentChooser interface implementations, from GtkObject to GObject. (gtk_recent_chooser_class_init): Use GTK_PARAM_* instead of G_PARAM_* svn path=/trunk/; revision=17514
* Set the HIG spacings directly instead of using style-set handlers. Fix theChristian Persch2006-12-251-1/+1
| | | | | | | | | | | | | | | | | | | | | 2006-12-25 Christian Persch <chpe@cvs.gnome.org> * gtk/gtkaboutdialog.c: (gtk_about_dialog_class_init), (gtk_about_dialog_init), (display_credits_dialog), (display_license_dialog): * gtk/gtkfilechooserdialog.c: (gtk_file_chooser_dialog_class_init), (gtk_file_chooser_dialog_init), (gtk_file_chooser_dialog_constructor), (gtk_file_chooser_dialog_unmap): * gtk/gtkrecentchooserdefault.c: (_gtk_recent_chooser_default_init): * gtk/gtkrecentchooserdialog.c: (gtk_recent_chooser_dialog_class_init), (gtk_recent_chooser_dialog_init), (gtk_recent_chooser_dialog_constructor), (gtk_recent_chooser_dialog_unmap): Set the HIG spacings directly instead of using style-set handlers. Fix the filechooser's spacing between content and action area to 12px. Bug #372447.
* Replace a lot of idle and timeout calls by the new gdk_threads api.Matthias Clasen2006-12-221-11/+1
| | | | | | | 2006-12-22 Matthias Clasen <mclasen@redhat.com> * *.c: Replace a lot of idle and timeout calls by the new gdk_threads api.
* Provide a fast path returning NULL when the limit is set to 0.Emmanuele Bassi2006-11-161-1/+5
| | | | | | | | | | | | 2006-11-16 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkrecentmanager.c: Provide a fast path returning NULL when the limit is set to 0. * gtk/gtkrecentchooserdefault.c: * gtk/gtkrecentchoosermenu.c: Add the same fast path inside the RecentChooser implementation; add a check in the list clamping code. (#373466 and duplicates)
* Apply a cleanup patch by Kjartan Maraas (#341812)Matthias Clasen2006-10-081-1/+0
| | | | | | 2006-10-08 Matthias Clasen <mclasen@redhat.com> * Apply a cleanup patch by Kjartan Maraas (#341812)
* Apply a patch by Behdad Esfahbod to reduce relocations. (#359053)Matthias Clasen2006-10-031-4/+1
| | | | | | | 2006-10-03 Matthias Clasen <mclasen@redhat.com> * gtk/*.c, gdk/*.c: Apply a patch by Behdad Esfahbod to reduce relocations. (#359053)
* Commit a patch by Behdad to fix typos, omissions and other errors in theMatthias Clasen2006-09-101-3/+0
| | | | | | | | 2006-09-10 Matthias Clasen <mclasen@redhat.com> * Commit a patch by Behdad to fix typos, omissions and other errors in the symbol aliasing, and add checks for local PLT entries. (#354687, Behdad Esfahbod)
* Show non existing resources by default. (recent_meta_data_func): Do notEmmanuele Bassi2006-08-061-5/+1
| | | | | | | | | | | | | | | | 2006-08-07 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkrecentchooserdefault.c: (_gtk_recent_chooser_default_init): Show non existing resources by default. (recent_meta_data_func): Do not mark non existing resources as insensitive. * gtk/gtkrecentchoosermenu.c: (gtk_recent_chooser_menu_init): Show non existing resources by default. (gtk_recent_chooser_menu_create_item): Do not mark non existing resources as insensitive.
* Do not leak the URI returned by the model; select the row when callingEmmanuele Bassi2006-07-101-14/+16
| | | | | | | | | 2006-07-10 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkrecentchooserdefault.c (scan_for_uri_cb): Do not leak the URI returned by the model; select the row when calling gtk_recent_chooser_set_current_uri(). (patch by Torsten Schoenfeld)
* Improve consistency of signal and property namesMatthias Clasen2006-07-061-2/+2
|
* Do not leak the groups string vector. (#344607, John Finlay)Emmanuele Bassi2006-06-111-0/+2
| | | | | | | | | | | 2006-06-11 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkrecentchooserdefault.c (get_is_recent_filtered): * gtk/gtkrecentchoosermenu.c (get_is_recent_filtered): Do not leak the groups string vector. (#344607, John Finlay)
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Make symbol list mstch reality.Matthias Clasen2006-05-041-7/+7
| | | | | | | | | | | | | | | | 2006-05-04 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkfilesystem.c: * gtk/gtkfilesystemunix.c: * gtk/gtkprintbackend.h: * gtk/gtkrecentchooserdefault.c: * gtk/gtkrecentchooserdefault.h: * gtk/paper_names_offsets.c: Make symbol list mstch reality. * gtk/Makefile.am: Fix a typo. * gdk/x11/Makefile.am (EXTRA_DIST): Add gdksettings.c
* Fix some symbol aliasing glitchesMatthias Clasen2006-03-291-1/+2
|
* Import GtkRecent* from libegg.Emmanuele Bassi2006-03-291-0/+2073
2006-03-29 Emmanuele Bassi <ebassi@cvs.gnome.org> Import GtkRecent* from libegg. * gtk/gtkrecentmanager.[ch]: Add GtkRecentManager, an object for managing a list of recently used resources. * gtk/gtkrecentchooser.[ch]: * gtk/gtkrecentchooserdefault.[ch]: * gtk/gtkrecentchooserdialog.[ch]: * gtk/gtkrecentchoosermenu.[ch]: * gtk/gtkrecentchooserprivate.h: * gtk/gtkrecentchooserutils.[ch]: * gtk/gtkrecentchooserwidget.[ch]: Add GtkRecentChooser, a GTypeInterface for widgets implementing viewers for recently used resources. * gtk/gtkrecentfilter.[ch]: GtkRecentFilter, a filter object for GtkRecentChooser implementations. * gtk/gtk.h: * gtk/gtk.symbols: * gtk/Makefile.am: Build glue for GtkRecent*.