summaryrefslogtreecommitdiff
path: root/gtk/gtkrecentchooserdefault.c
Commit message (Collapse)AuthorAgeFilesLines
* Another round of template binding api changesMatthias Clasen2013-07-261-9/+9
| | | | | | | | | | | We rename the gtk_widget_class_bind_template_child{_internal} macros by appending a _private to their name. Otherwise, it would be too magic to pass the 'public' names as arguments, but affect a member of the Private struct. At the same time, Add two new macros with the old names, gtk_widget_class_bind_template_child{_internal} that operate on members of the instance struct.
* Rename the widget template APIEmmanuele Bassi2013-07-261-18/+18
| | | | | | | | | | | | | | | | | | | | The macros and functions are inconsistently named, and are not tied to the "template" concept - to the point that it seems plausible to use them without setting the template. The new naming scheme is as follows: gtk_widget_class_bind_template_child_full gtk_widget_class_bind_template_callback_full With the convenience macros: gtk_widget_class_bind_template_child gtk_widget_class_bind_template_child_internal gtk_widget_class_bind_template_callback https://bugzilla.gnome.org/show_bug.cgi?id=700898 https://bugzilla.gnome.org/show_bug.cgi?id=700896
* widget: Use a real offset in gtk_widget_class_automate_childAlexander Larsson2013-07-261-9/+9
| | | | | | | | | | Using an offset from the struct means you can have children in both the public and private (via G_PRIVATE_OFFSET) parts of the instance. It also matches the new private macros nicer. https://bugzilla.gnome.org/show_bug.cgi?id=702563 Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* Drop some unnecessary includesMatthias Clasen2013-07-191-2/+0
| | | | | Drop includes of deprecated headers where they are no longer needed.
* Move wholly deprecated classes to gtk/deprecated/Matthias Clasen2013-07-191-3/+3
| | | | | | | | | | | | | | | | | | We've recently a number of classes wholly. For these cases, move the headers and sources to gtk/deprecated/ and adjust Makefiles and includes accordingly. Affected classes: GtkAction GtkActionGroup GtkActivatable GtkIconFactory GtkImageMenuItem GtkRadioAction GtkRecentAction GtkStock GtkToggleAction GtkUIManager
* Deprecate and hardcode gtk-recent-files-limitWilliam Jon McCann2013-07-091-18/+3
| | | | | | The GtkRecentChooser already has a property that can be used to set this on a per widget basis and the recent manager already has a max-age limit.
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-5/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* Deprecate GtkAction and GtkUIManagerWilliam Jon McCann2013-06-301-1/+7
| | | | It is recommended to use GAction et al and GtkBuilder.
* Deprecate GtkIconFactory, GtkIconSet, GtkIconSourceWilliam Jon McCann2013-06-261-8/+1
| | | | | We want to use GtkIconTheme instead. It is worth noting that the parts that remain undeprecated are GtkIconSize and gtk_icon_size_lookup.
* Start migrating internals away from GtkStockWilliam Jon McCann2013-06-241-10/+3
|
* GtkRecentChooserDefault: Define children with a GtkBuilder templateTristan Van Berkom2013-04-081-348/+271
|
* gtk: Query font size directlyBenjamin Otte2012-12-061-5/+4
| | | | | ... instead of calling gtk_style_context_get_font() and then pango_font_description_get_size().
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* gtk/*: Use g_list_free_full() convenience functionJavier Jardón2012-01-051-10/+3
|
* Use the workarea when placing popupsMatthias Clasen2011-12-181-2/+2
| | | | | This uses the new workarea API to avoid placing popups underneath panels, docks, etc.
* Bug 659406 - Abstract what triggers a context menuMichael Natterer2011-09-271-3/+1
| | | | | | Add gdk_event_triggers_context_menu(), using the new modifier abstraction API. Remove _gtk_button_event_triggers_context_menu() and port all callers.
* Bug 659406 - Abstract what triggers a context menuMichael Natterer2011-09-261-2/+2
| | | | | | Add _gtk_button_event_triggers_context_menu() and use it instead of checking for event->button == 3, so context menus are invoked correctly on the Mac.
* Clean up unneeded includesMatthias Clasen2011-08-281-2/+1
|
* More include cleanupsMatthias Clasen2011-06-071-2/+2
|
* GtkRecentChooserDefault: derive from GtkBox, not GtkVBoxMatthias Clasen2011-06-071-9/+11
|
* recentchooser: Fix default size settingBenjamin Otte2011-04-271-1/+4
| | | | | Set the min content size on the scrolled window instead of using gtk_widget_set_size_request() on a widget where it's not recognized.
* 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