summaryrefslogtreecommitdiff
path: root/gtk/gtklinkbutton.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Revert spurious commit on GtkLinkButtonEmmanuele Bassi2008-02-111-14/+7
| | | | svn path=/trunk/; revision=19510
* Set no-show-all flag on the placeholder menu item.Emmanuele Bassi2008-02-111-7/+14
| | | | | | | | | | | | | | 2008-02-11 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkrecentchoosermenu.c: (gtk_recent_chooser_menu_constructor): Set no-show-all flag on the placeholder menu item. * tests/testrecentchoosermenu.c: (create_recent_chooser_menu): Use gtk_widget_show_all() to test whether the placeholder menu item gets shown. svn path=/trunk/; revision=19509
* remove unused variable.Michael Natterer2008-01-091-5/+5
| | | | | | | | | | | | | | | | | | | | | 2008-01-09 Michael Natterer <mitch@imendio.com> * gtk/gtkcolorsel.c (make_label_spinbutton): remove unused variable. * gtk/gtkcombobox.c (gtk_combo_box_detacher) * gtk/gtkicontheme.c (theme_list_contexts) (gtk_icon_theme_lookup_icon) * gtk/gtkimcontextsimple.c (beep_window) * gtk/gtklinkbutton.c (set_link_color) * gtk/gtkuimanager.c (child_hierarchy_changed_cb): add casts to fix warnings. * gtk/gtkpathbar.c (_gtk_path_bar_set_file_system): remove unused variable and add const to another to fix a warning. svn path=/trunk/; revision=19330
* More default property value correctionsMatthias Clasen2007-12-281-2/+2
| | | | svn path=/trunk/; revision=19276
* Remove trailing commas from enumerations, since some compilers don't likeMatthias Clasen2007-09-091-1/+1
| | | | | | | | | | | | | 2007-09-09 Matthias Clasen <mclasen@redhat.com> * gtk/gtklinkbutton.c: * gtk/gtkrecentfilter.c: * gtk/gtkprinteroptionwidget.c: Remove trailing commas from enumerations, since some compilers don't like them. (#467717) svn path=/trunk/; revision=18771
* Fix some compiler warnings. (#433642, Kjartan Maraas)Matthias Clasen2007-04-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-04-30 Matthias Clasen <mclasen@redhat.com> Fix some compiler warnings. (#433642, Kjartan Maraas) * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_get_info): (gtk_file_system_win32_create_folder): * gtk/gtkaction.c (gtk_action_create_menu): Fix NULL/FALSE confusion. * gtk/gtklinkbutton.c (gtk_link_button_clicked): Pass the right type to uri_func. * gtk/gtktext.c (gtk_text_key_press): * gtk/gtkstatusicon.c (gtk_status_icon_get_property): * gtk/gtkxembed.c (_gtk_xembed_send_message): Add casts. * gtk/gtktrayicon-x11.c (gtk_tray_icon_manager_window_destroyed): (gtk_tray_icon_delete): * gtk/gtkprintunixdialog.c (create_main_page): * gtk/gtkhsv.c (gtk_hsv_motion): Remove unused variables. * gtk/gtkliststore.c: Adapt callbacks to GSequence types. svn path=/trunk/; revision=17739
* Don't leak PangoAttributes. (#352391, Paolo Borelli)Matthias Clasen2006-08-261-0/+1
| | | | | | | 2006-08-26 Matthias Clasen <mclasen@redhat.com> * gtk/gtklinkbutton.c (set_link_underline): Don't leak PangoAttributes. (#352391, Paolo Borelli)
* Improve consistency of signal and property namesMatthias Clasen2006-07-061-3/+3
|
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Make the default colors const.Matthias Clasen2006-04-031-2/+2
| | | | | | 2006-04-03 Matthias Clasen <mclasen@redhat.com> * gtk/gtklinkbutton.c: Make the default colors const.
* Return NULL instead of FALSE in g_return_val_if_fail in aBehdad Esfahbod2006-04-011-1/+1
| | | | | | | | | 2006-03-31 Behdad Esfahbod <behdad@gnome.org> * gtk/gtkfilesystem.c (gtk_file_system_get_bookmark_label): * gtk/gtklinkbutton.c (gtk_link_button_new_with_label): Return NULL instead of FALSE in g_return_val_if_fail in a pointer-returning function. (#336764, Morten Welinder)
* Fix a cast.Matthias Clasen2006-02-201-1/+1
| | | | | | | 2006-02-19 Matthias Clasen <mclasen@redhat.com> * gtk/gtklinkbutton.c (gtk_link_button_class_init): Fix a cast.
* Allow to set a global hook function thats called whenever a link button isMatthias Clasen2006-01-281-0/+40
| | | | | | | | | 2006-01-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtklinkbutton.h: * gtk/gtklinkbutton.c: Allow to set a global hook function thats called whenever a link button is clicked.
* Add GtkLinkButton, a port of GnomeHRef. (#314808, Emmanuele Bassi)Matthias Clasen2006-01-241-0/+619
2006-01-23 Matthias Clasen <mclasen@redhat.com> Add GtkLinkButton, a port of GnomeHRef. (#314808, Emmanuele Bassi) * gtk/gtklinkbutton.h: * gtk/gtklinkbutton.c: New files. * gtk/gtk.h: * gtk/gtk.symbols: * gtk/Makefile.am: Glue. * gtk/gtkaboutdialog.c: Use GtkLinkButton.