summaryrefslogtreecommitdiff
path: root/gtk/gtklinkbutton.c
Commit message (Collapse)AuthorAgeFilesLines
* Use standard cursor namesMatthias Clasen2015-07-261-1/+1
| | | | | | | This changes GTK+ to use gdk_cursor_new_from_name() with the 'standard' css names, instead of GdkCursorType. https://bugzilla.gnome.org/show_bug.cgi?id=652085
* linkbutton: use the text-decoration-line cssPaolo Borelli2015-07-061-37/+2
| | | | | Remove the custom add() implementation and use css to underline the label.
* GtkLinkButton: Use G_PARAM_EXPLICIT_NOTIFYMatthias Clasen2014-06-091-9/+10
|
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-4/+4
| | | | Instead of Return value:
* docs: use proper quotations instead of '*'William Jon McCann2014-02-071-5/+5
|
* GtkLinkButton: Use :link and :visited for the label's colorTimm Bäder2013-11-041-57/+14
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=709629
* Add a style class for context menusMatthias Clasen2013-08-181-3/+5
| | | | | | | | | | | | | | Attached widgets inherit from the style of the widget they are attached to. This can sometimes have unintended consequences, like a context menu in the main view of gedit inheriting the font that is configured for documents, or the context menu of the preview in the font chooser coming up with humongous font size. To fix this problem, we introduce a context menu style class and use it for all menus that are used like that. The theme can then set a font for this style class. https://bugzilla.gnome.org/show_bug.cgi?id=697127
* Drop some unnecessary includesMatthias Clasen2013-07-191-1/+0
| | | | | Drop includes of deprecated headers where they are no longer needed.
* Move wholly deprecated classes to gtk/deprecated/Matthias Clasen2013-07-191-1/+1
| | | | | | | | | | | | | | | | | | 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
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-6/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* Start migrating internals away from GtkStockWilliam Jon McCann2013-06-241-5/+1
|
* gtk: Fix warnings for some uses of GtkLinkButtonBastien Nocera2012-05-101-1/+4
| | | | | | Not setting a URI but catching the activate-link signal is a valid use of GtkLinkButton, but we shouldn't allow showing a popup menu which offers to copy the URI if there's none.
* Fix malformed doc commentsMatthias Clasen2012-04-121-5/+5
| | | | | Most of these are forgotten :'s and similar details which gtk-doc now warns about.
* Change FSF AddressJavier Jardón2012-02-271-2/+1
|
* Use the workarea when placing popupsMatthias Clasen2011-12-181-1/+1
| | | | | This uses the new workarea API to avoid placing popups underneath panels, docks, etc.
* Remove various internal uses of deprecated apiMatthias Clasen2011-11-021-4/+9
|
* gtk: move _gtk_modules_has_mixed_deps() to gtkmodlesprivate.hMichael Natterer2011-10-231-1/+1
| | | | and remove gtkmainprivate.h completely.
* Bug 659406 - Abstract what triggers a context menuMichael Natterer2011-09-271-2/+2
| | | | | | 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-1/+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.
* link-button: Reset the mouse cursor when destroyedBastien Nocera2011-09-161-0/+10
| | | | | | | | If clicking on a link destroys the link button, and keeps the same GdkWindow then the cursor stays as a hand in the rest of the interface. https://bugzilla.gnome.org/show_bug.cgi?id=659247
* Convert GailLinkButton to GtkLinkButtonAccessibleMatthias Clasen2011-07-051-1/+3
|
* gtk: Use const instead G_CONST_RETURNJavier Jardón2011-06-101-1/+1
|
* Always chain up in ::style-updatedMatthias Clasen2011-02-071-2/+2
| | | | | This was not handled consistently, but the default handler does useful things, so we should always chain up.
* Move docs for gtkmain inlineMatthias Clasen2011-01-041-4/+4
| | | | | | | | At the same time, introduce a gtkmainprivate.h header and various other cleanups. Based on a patch by Tadej Borovšak. https://bugzilla.gnome.org/show_bug.cgi?id=617471
* Make GtkLinkButton use ::style-updatedCarlos Garnacho2011-01-041-5/+3
|
* gtk: Use g_object_unref instead of gdk_cursor_unrefBenjamin Otte2010-12-211-1/+1
|
* gtk/gtklinkbutton.c: Use accessor functions to access GtkSelectionDataJavier Jardón2010-12-151-1/+1
|
* link-button: Add ::activate-link signalEmmanuele Bassi2010-10-151-7/+53
| | | | | | | | | | | | | | | We cannot use the GtkButton::clicked signal to override the default behavior of GtkLinkButton (i.e. call gtk_show_uri()), because GtkButton::clicked is registered as a RUN_FIRST signal, which obviously prevents any other signal handler connected to it to stop the propagation before the class handler has a chance to run. For this reason we can add a GtkLinkButton::activate-link signal, which will be emitted by the default GtkButton::clicked signal handler; the ::activate-link signal has a boolean return value, which allows simpler code for stopping the propagation to the next signal handler. https://bugzilla.gnome.org/show_bug.cgi?id=632150
* Move GtkSizeRequest into GtkWidgetBenjamin Otte2010-09-261-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 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".
* Update docs of GtkAboutDialog and GtkLinkButtonMatthias Clasen2010-09-241-0/+22
| | | | | Remove references to global hooks from the docs. Also move remaining docs inline, and remove the templates.
* Remove url hooks from GtkAboutDialog and GtkLinkButtonMatthias Clasen2010-09-221-58/+13
| | | | | | | | With gtk_show_uri, global configurability of link activation has moved to GIO/gvfs. For local overrides, GtkLinkButton has the ::clicked signal, and GtkAboutDialog gets an ::activate-link signal. Bug 339745
* Use gtk_size_request_get_size() instead deprecated gtk_widget_size_request()Javier Jardón2010-09-151-3/+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>
* gtk/gtklinkbutton.c: use accessor functions to access GtkWidgetJavier Jardón2010-08-221-4/+6
|
* GtkLinkButton: unseal private pointerJavier Jardón2010-07-131-3/+4
|
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-5/+0
| | | | 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 widget flag: GTK_WIDGET_HAS_FOCUSJavier Jardón2010-03-011-1/+1
| | | | | | Use gtk_widget_has_focus() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* [annotations] Add allow-noneJohan Dahlin2010-02-191-3/+3
| | | | | | | | This commit was created using a script that searched for all docstrings containing a parameter and the string 'or %NULL'. Gdk backends and demos excluded as they are not part of a public API https://bugzilla.gnome.org/show_bug.cgi?id=610474
* [introspection] Merge in Gtk-custom.c annotationsColin Walters2009-12-161-2/+2
| | | | | | | | The Gtk-custom.c file in gir-repository contained a number of introspection annotations. Merge those into the GTK source files. Some documentation was moved from the tmpl/ files to accomodate the addition of annotations.
* Fix the buildMatthias Clasen2008-12-081-1/+2
| | | | svn path=/trunk/; revision=21854
* Call gtk_show_uri() if no uri hook has been set. Patch by Emmanuele BassiMatthias Clasen2008-12-081-0/+22
| | | | | | | | * gtk/gtklinkbutton.c: Call gtk_show_uri() if no uri hook has been set. Patch by Emmanuele Bassi svn path=/trunk/; revision=21853
* Bug 557316 – GtkLinkButton should consider user-defined tooltipChristian Dywan2008-10-301-1/+3
| | | | | | | * gtk/gtklinkbutton.c (gtk_link_button_query_tooltip_cb): Only override the tooltip if not previously set svn path=/trunk/; revision=21728
* bail out if there is no label to set the color on.Michael Natterer2008-08-121-0/+3
| | | | | | | | | | | | | 2008-08-12 Michael Natterer <mitch@imendio.com> * gtk/gtklinkbutton.c (set_link_color): bail out if there is no label to set the color on. (gtk_link_button_add): call set_link_color() so the label gets the right color no matter how the link button is created. svn path=/trunk/; revision=21100
* consistently chain up using GTK_FOO_CLASS(parent_class)->bar(instance)Michael Natterer2008-08-121-1/+1
| | | | | | | | | | | 2008-08-12 Michael Natterer <mitch@imendio.com> * gtk/*.c: consistently chain up using GTK_FOO_CLASS(parent_class)->bar(instance) instead of (*GTK_FOO_CLASS(parent_class))->bar(instance). svn path=/trunk/; revision=21085
* Bug 546771 - Add writable property "visited" to GtkLinkButtonSven Neumann2008-08-071-17/+85
| | | | | | | | | | | | | | | 2008-08-07 Sven Neumann <sven@gimp.org> Bug 546771 - Add writable property "visited" to GtkLinkButton * gtk/gtk.symbols * gtk/gtklinkbutton.[ch]: expose the 'visited' state as a read-write property with getters and setters. Also move the nick and blurb of the "uri" property to the proper translation domain. svn path=/trunk/; revision=21032
* update the link color when the "visited" state is changed.Sven Neumann2008-08-041-1/+5
| | | | | | | | | | 2008-08-04 Sven Neumann <sven@gimp.org> * gtk/gtklinkbutton.c (gtk_link_button_set_uri): update the link color when the "visited" state is changed. svn path=/trunk/; revision=20966
* 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-5/+1
| | | | | | | | | | | | | | | | | | | 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
* Show the URI in a tooltip. (#505480, Teppo Turtiainen)Matthias Clasen2008-02-161-8/+43
| | | | | | | | | | 2008-02-16 Matthias Clasen <mclasen@redhat.com> * gtk/gtklinkbutton.c: Show the URI in a tooltip. (#505480, Teppo Turtiainen) svn path=/trunk/; revision=19596