Simon McVittie
177aeca5a1
aboutdialog: Update precondition checks for new licenses added in 3.24.20
...
To avoid making this mistake again, add a static assertion that the
enum is in sync with gtk_license_info, and use the length of
gtk_license_info for the precondition check.
Signed-off-by: Simon McVittie <smcv@debian.org>
Resolves : #2734
2020-05-11 18:35:58 +01:00
Javier Jardón
adc2f4ad9e
3.24: gtk/gtkaboutdialog: Add some more very common licenses:
...
- BSD 3-Clause "New" or "Revised" license
- Apache License 2.0
- Mozilla Public License 2.0
2020-04-12 13:11:22 +01:00
Bastien Nocera
5d7183ee0c
all: Don't warn about deprecated gtk_window_present usage
...
Avoid compilation warnings about internal users of gtk_window_present().
2019-02-22 18:38:11 -05:00
Emmanuele Bassi
4f962c6dbf
Add AGPL3-only licence to GtkAboutDialog
...
https://bugzilla.gnome.org/show_bug.cgi?id=792793
2018-02-11 14:22:09 +00:00
Julian Sparber
f3408d89d5
AboutDialog: Fix accepting GTK_LICENSE_AGPL_3_0
...
Add the new GTK_LICENSE_AGPL_3_0 to the allowed enum range checked in
gtk_about_dialog_set_license_type(), so this value is not rejected.
https://bugzilla.gnome.org/show_bug.cgi?id=789678
2017-10-31 18:57:02 +00:00
Timm Bäder
8169d6703a
aboutdialog: Fix code snippets
...
Define all variables and fix a missing comma in the first
gtk_show_about_dialog call.
2017-10-11 22:11:27 +01:00
Daniel Aleksandersen
ff982658ee
Update the URLs of known licenses to HTTPS
...
Use HTTPS by default for security/privacy. Avoids slow redirects.
https://bugzilla.gnome.org/show_bug.cgi?id=766517
2017-07-18 14:36:02 -04:00
Bastien Nocera
f2febf7c71
GtkAboutDialog: We use gtk_show_uri_on_window() by default
...
Not gtk_show_uri().
https://bugzilla.gnome.org/show_bug.cgi?id=778726
2017-02-16 16:34:42 +01:00
Chris Mayo
d9748563c8
GtkAboutDialog: Fix formatting of example email address in html
...
Signed-off-by: Chris Mayo <aklhfex@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=776524
2016-12-30 10:37:38 -05:00
Matthias Clasen
e47957406d
about dialog: Use gtk_show_uri_on_window
...
This allows us to handle things slightly better in
the portal case.
https://bugzilla.gnome.org/show_bug.cgi?id=768499
2016-07-08 00:07:11 -04:00
Bastien Nocera
a8c59543cf
about-dialog: Fix "format not a string literal" errors
...
A non-intrusive fix.
https://bugzilla.gnome.org/show_bug.cgi?id=764585
2016-04-05 12:58:58 +02:00
Mohammed Sadik
d47c7f7ba0
gtkaboutdialog: don't break ABI in GtkLicense enum
...
As the elements in the enum are not explicitly numbered, inserting an
element between some other elements shall change the values of elements
after the insertion. So append the new element at the end.
Anyway, no code should rely on the position of an element in an enum.
https://bugzilla.gnome.org/show_bug.cgi?id=763850
2016-03-25 18:38:46 +01:00
Mohammed Sadik
40e777ae30
gtkaboutdialog: Add support for GNU Affero GPLv3+
...
Add support for GNU Affero GPLv3 (or later) to GtkLicense enum
https://bugzilla.gnome.org/show_bug.cgi?id=763850
2016-03-24 23:18:40 -04:00
Timm Bäder
2182fe7d9d
Don't pass widget state flags to GtkStyleContext API
2015-11-22 17:11:35 +01:00
Matthias Clasen
66f0bdee0a
Intern all signal names beforehand
...
This avoids pointless allocations
2015-09-12 12:50:39 -04:00
Matthias Clasen
9f24b54786
Code cleanup
...
Use g_slist_free_full more consistently. This commit just converts
the obvious cases where g_slist_forall is directly followed by
g_slist_free.
2015-07-31 22:23:35 -04:00
Matthias Clasen
5c2759af3c
Use standard cursor names
...
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
2015-07-26 01:45:06 -04:00
Matthias Clasen
94825c1777
about dialog: Fix compiler warnings
...
Fix warnings due to -Wdeclaration-after-statement and -Wshadow.
2015-06-02 09:08:14 -04:00
Matthias Clasen
e478ec09b8
GtkAboutDialog: Make credits section keyboard navigatable
...
Its the right thing to do.
2015-05-02 11:55:57 -04:00
Christian Persch
066646c96d
GtkAboutDialog: Fix crash on link click
...
https://bugzilla.gnome.org/show_bug.cgi?id=743592
2015-01-28 16:28:51 -05:00
Matthias Clasen
79ada68f8c
Formatting fixes
2014-12-23 14:30:10 -05:00
Matthias Clasen
8aecf2c06a
GtkAboutDialog: Don't use gdk_cursor_new
...
gdk_cursor_new returns cursors for the default display, and
thus is not safe to use in code that may run on non-default
displays.
2014-10-28 00:36:17 -04:00
Matthias Clasen
a8f4269157
GtkAboutDialog: Don't shout
...
Don't use all-caps in the UI - it looks scary.
https://bugzilla.gnome.org/show_bug.cgi?id=671138
2014-10-19 23:16:06 -04:00
Thomas Lange
a6ae8f6d96
aboutdialog: Mark strings as translatable
...
https://bugzilla.gnome.org/show_bug.cgi?id=730893
2014-10-18 22:56:28 +02:00
Matthias Clasen
bdf35e034a
GtkAboutDialog: Add formatting examples to the docs
...
We were not very explicit about the expected format for links
and email addresses in the strings, so give some explicit examples.
2014-08-29 15:11:11 -04:00
Matthias Clasen
992af6c4fe
GtkAboutDialog: Support https in links
...
https://bugzilla.gnome.org/show_bug.cgi?id=680067
2014-08-29 00:51:39 -04:00
Matthias Clasen
08066b1009
GtkAboutDialog: Drop visibility-notify-event handler
...
The signal is deprecated, and the handler is only helping
for a really tiny corner case anyway.
https://bugzilla.gnome.org/show_bug.cgi?id=734961
2014-08-23 01:28:14 -04:00
Matthias Clasen
22db3e57cb
Avoid picking up long description as translator comment
...
Rearrange a few lines to help xgettext avoid picking up the
long description of GtkAboutDialog as translator comment.
2014-08-22 02:04:31 -04:00
Lars Uebernickel
b6c4865ff8
gtkaboutdialog: support showing buttons in action area
...
Give GtkAboutDialog buttons in the action area instead of hard-coding
use-header-bar to TRUE. This is for environments which don't have the
Gtk/DialogsUseHeader xsetting turned on.
https://bugzilla.gnome.org/show_bug.cgi?id=730893
2014-06-30 19:07:56 -04:00
Matthias Clasen
bc46df34fc
GtkAboutDialog: Use a setter for wrap-license
...
This avoids redundant notification.
2014-06-09 13:30:51 -04:00
Matthias Clasen
09a589b716
GtkAboutDialog: Fix a parameter check
...
When we expanded the GtkLicense enumeration in 3.12, we forgot
to update the limit check in gtk_about_dialog_set_license_type.
Caught by testing property notification for enum properties.
2014-06-09 13:30:51 -04:00
Matthias Clasen
06ab3e7477
GtkAboutDialog: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:30:51 -04:00
Matthias Clasen
c8acad2816
GtkAboutDialog: Convert to g_object_class_install_properties
2014-06-09 13:30:51 -04:00
Volker Sobek
f8b6bfe744
docs: Remove '\' escape character from literals
...
commit 7f6a964c47
replaced entities, but
escaped the replacement text also inside literals, which resulted in the
escaping '\' to also appear in the documentation.
https://bugzilla.gnome.org/show_bug.cgi?id=727322
2014-04-04 01:24:35 -04:00
William Jon McCann
905a6aa2e8
about-dialog: link directly to the 3.0 version of GPL licenses
...
In the unlikely case that there is another GPL released in the future
it would be best if we link directly to the 3.0 version of the
license description instead of the alias to the latest
version.
2014-02-27 08:12:56 -05:00
William Jon McCann
469d333aa2
docs: use Returns: consistently
...
Instead of Return value:
2014-02-19 18:56:05 -05:00
Matthias Clasen
3c981d23dc
Don't show an empty license tab
...
It is not useful to show a license tab, if there's no license
to read. This was pointed out as a possibility in
https://bugzilla.gnome.org/show_bug.cgi?id=724411
2014-02-15 18:07:09 -05:00
William Jon McCann
37a8ee6e95
docs: fully break lines in examples
...
Try to do a better job of keeping example content
from being too wide. It is often rendered as <pre>
text so the only time we can wrap it is in the source.
It is best to full break lines at all punctuation and
to try to keep the width under 70 chars or so.
2014-02-12 18:42:50 -05:00
Matthias Clasen
7f6a964c47
Docs: Remove all entities and turn off sgml mode
...
With all element markup gone, it is time to turn off
sgml mode, and get rid of entities as well.
2014-02-09 17:58:07 -05:00
William Jon McCann
13998c55e7
docs: use proper quotations instead of '*'
2014-02-07 14:22:39 -05:00
William Jon McCann
7a208fbbf3
docs: use proper apostrophe
...
https://wiki.gnome.org/Design/OS/Typography
2014-02-07 13:06:10 -05:00
William Jon McCann
2a45418b67
docs: use proper quotes
2014-02-05 15:08:42 -05:00
William Jon McCann
a22358c0c0
docs: use ` instead of <literal>
2014-02-04 18:24:29 -05:00
William Jon McCann
4c8bd8e7cf
docs: Identify examples that are C code
...
https://bugzilla.gnome.org/show_bug.cgi?id=723119
2014-01-29 12:45:49 -05:00
William Jon McCann
768bc44081
docs: use |[ ]| instead of <programlisting></programlisting>
...
https://bugzilla.gnome.org/show_bug.cgi?id=723119
2014-01-29 12:45:49 -05:00
Christian Dywan
dcf41924fe
Clarify documentation of GtkAboutDialog::logo
...
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=636594
2014-01-24 22:43:51 -05:00
Cosimo Cecchi
22bcd62e2e
aboutdialog: make use-header-bar override work from bindings
...
Instead of setting "use-header-bar" from gtk_about_dialog_new(),
override its default value by inspecting the properties at constructor()
time. This makes it work from bindings as well, since they don't use the
convenience C constructor.
https://bugzilla.gnome.org/show_bug.cgi?id=722574
2014-01-24 15:50:36 -05:00
William Jon McCann
4a11acdc8c
resources: move resources into a subdirectory
2014-01-23 21:04:59 -05:00
William Jon McCann
a70f8f44b4
about dialog: Use headerbar
...
Use a GtkHeaderBar for the credits and about buttons.
It makes less sense here than in other places to go back to
the buttons on the bottom, considering we only have a close
button, so we always use a header bar.
https://bugzilla.gnome.org/show_bug.cgi?id=720059
2014-01-17 17:52:08 -05:00
Matthias Clasen
2ebbc724b7
GtkAboutDialog: be consistent about link activation
...
As pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=721394 ,
links in the credits part were not going through the
::link-activated signal. Fix that.
2014-01-04 11:08:29 -05:00