Timm Bäder
d1cd6aacba
tests: Add common_cflags to build
...
And fix all the errors and warnings resulting from that
See #2491
2020-03-06 18:21:58 +01:00
Matthias Clasen
66307f00f1
icontheme: Update the api
...
Add properties, and use string arrays instead of lists.
Among other things, this renames gtk_icon_theme_list_icons
to gtk_icon_theme_get_icon_names.
Fixes: https://gitlab.gnome.org/GNOME/gtk/issues/2410
2020-02-18 20:32:17 -05:00
Benjamin Otte
a278edab22
window: Remove type argument from gtk_window_new()
2020-02-14 21:18:49 +01:00
Matthias Clasen
59b935af38
Merge branch 'mainloop-cleanup' into 'master'
...
Mainloop cleanup
See merge request GNOME/gtk!1404
2020-02-10 14:32:09 +00:00
Alexander Larsson
904eecd1ed
icon paintable: Replace get_filename and get_resource_path with get_file()
...
This returns a GFile which can represent both the above.
2020-02-10 12:33:17 +01:00
Matthias Clasen
a6c5466900
Stop using gtk_main and gtk_main_quit
...
Replace these calls with direct use of GMainContext api.
2020-02-09 23:12:32 -05:00
Alexander Larsson
410541f82b
Rename GtkIcon to GtkIconPaintable
2020-02-04 17:19:22 +01:00
Benjamin Otte
571021cbc1
icontheme: Pass fallbacks as optional argument to lookup_icon()
...
This way, we can remove gtk_icon_theme_choose_icon() completely.
2020-02-04 16:51:54 +01:00
Benjamin Otte
f7a5dd7b8b
icontheme: Remove contexts
...
There is no way to query contexts or do anything useful with them.
So don't keep track of them and don't make them an argument in public
APIs with the docs saying "I don't know what to use here, maybe read
some spec somewhere".
2020-02-04 16:51:54 +01:00
Benjamin Otte
4b96ba592f
icontheme: Remove gtk_icon_get_base_size() and gtk_icon_get_base_dir()
...
Those functions are unused and the documentation says "Returns some
random number that the icon theme creator chose" which does not seem at
all useful and an implementation detail.
So get rid of it.
2020-02-04 16:43:59 +01:00
Benjamin Otte
10023b5d6d
icontheme: Remove GTK_ICON_LOOKUP_USE_BUILTIN
...
It's unused.
2020-02-04 16:41:36 +01:00
Benjamin Otte
bbbe39fb44
icontheme: Make text direction a lookup argument
...
Most users were just forgetting to set the proper flags.
And flags aren't the right way to set this anyway, it was just
acceptable as a workaround during GTK3 to not break API.
2020-02-04 16:41:36 +01:00
Benjamin Otte
b713b9f68d
icontheme: Remove async APIs
...
Widgets would not use them properly. In fact, the only user was using
them wrong.
As icons are loaded async by default, this call isn't necessary.
2020-02-04 16:41:36 +01:00
Alexander Larsson
d1cd578d59
icon-theme: Add i/o priority to choose_icon_async()
...
This is set on the GTask and lower priority will be loaded before,
this can be used to prioritize some icons for preloading.
2020-01-30 15:15:08 +01:00
Alexander Larsson
27799ba4f5
Remove final references to "icon info" with just "icon"
2020-01-30 10:53:43 +01:00
Alexander Larsson
b087f9ca51
icon-theme: Drop the _for_scale() versions and always take scale
2020-01-30 10:53:43 +01:00
Alexander Larsson
e2f778602b
icon-theme: Rename GtkIconInfo to GtkIcon
2020-01-30 10:53:43 +01:00
Alexander Larsson
0d666f0cec
icon-theme: Use gtk_icon_theme_choose_icon_async in tests
2020-01-29 19:06:16 +01:00
Alexander Larsson
c42977af04
Convert trivial users of icon theme loading to use info as paintable
2020-01-29 19:06:16 +01:00
Matthias Clasen
dbbb7eef15
testicontheme: Remove useless function
...
Contexts in icon themes are not useful for anything,
so drop this function from testicontheme.
2019-10-18 08:53:23 -05:00
Timm Bäder
590e70d4d1
icontheme: Return a paintable from gtk_icon_info_load_icon
2019-09-09 17:36:26 +02:00
Timm Bäder
fd16ac4d5e
icontheme: Return paintables from more API
2019-09-09 17:36:26 +02:00
Timm Bäder
f3099afcc5
icontheme: Return textures from load_icon{,_for_scale}
2019-09-09 17:36:26 +02:00
Matthias Clasen
67649763b6
tests: Stop using the delete-event signal
...
We can use ::destroy in most cases.
2018-01-16 14:14:09 -05:00
Timm Bäder
ea897c6df4
Remove gtk_widget_show_all
2017-01-20 21:37:04 +01:00
Matthias Clasen
2c7e567f05
Update callers
...
Adapt all our tests and examples to the new initialization api.
2017-01-19 13:50:17 -05:00
Timm Bäder
d188912338
icontheme: Remove deprecated API
2016-10-22 19:08:29 +02:00
Matthias Clasen
39349cdea3
testicontheme: Use rtl/ltr lookup flags
...
This should help with diagnosing
https://bugzilla.gnome.org/show_bug.cgi?id=737000
2014-09-21 14:09:16 -04:00
Benjamin Otte
46462ee7c4
tests: Add deprecation guards
...
... for newly deprecated gtk_icon_info_get_builtin_pixbuf()
2014-07-10 18:56:34 +02:00
Benjamin Otte
62c6ef5a29
tests: Remove tests for icontheme properties
...
These properties have been removed and always return %NULL, so no need
to keep them.
2014-06-30 01:08:02 +02:00
Alexander Larsson
ae24cbc11f
testicontheme: Add some tests for scales
2013-09-23 12:45:34 +02:00
Jasper St. Pierre
367364a8e1
Fix deprecations for GtkIconInfo
2013-02-15 19:48:56 -05:00
Alexander Larsson
7690846c3f
Add gtk_icon_info_load_icon_async
...
This lets you asynchronously load icons. We need this for gnome-shell
to replace its current non-threadsafe use of GtkIconTheme.
https://bugzilla.gnome.org/show_bug.cgi?id=693802
2013-02-14 22:10:09 +01:00
Javier Jardón
9d0febc9a6
Change FSF Address
2012-02-27 17:06:11 +00:00
Christian Dywan
7335be9e47
Bug 347230 – testicontheme shortcomings
...
* tests/testicontheme.c (main):
Use theme for "display" and quit on window closing
svn path=/trunk/; revision=21739
2008-10-31 08:56:42 +00:00
Matthias Clasen
0ac3069358
Set the filename to NULL for builtin icons, sinc
...
2007-04-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkicontheme.c (theme_lookup_icon): Set the filename to
NULL for builtin icons, sinc gtk_icon_info_get_builtin_pixbuf()
depends on it.
* tests/testicontheme.c: Report builtin icons.
svn path=/trunk/; revision=17638
2007-04-25 18:01:44 +00:00
Rodney Dawes
57f51f5d54
Add a new API call gtk_icon_theme_list_contexts so that one can choose
...
2007-03-21 Rodney Dawes <dobey@novell.com>
* gtk/gtk.symbols:
* gtk/gtkicontheme.[ch]:
* docs/reference/gtk/gtk-sections.txt:
* tests/testicontheme.c:
Add a new API call gtk_icon_theme_list_contexts so that one can
choose icons from a theme by context (#420719 )
svn path=/trunk/; revision=17550
2007-03-21 19:31:01 +00:00
Matthias Clasen
06e735a652
Add Copyright/License information.
2005-07-13 05:44:22 +00:00
Manish Singh
54b45a19b9
modules/engines/ms-windows/msw_rc_style.c
...
Fri Nov 19 15:18:51 2004 Manish Singh <yosh@gimp.org>
* modules/engines/ms-windows/msw_rc_style.c
* modules/engines/ms-windows/msw_style.c
* modules/engines/ms-windows/msw_theme_main.c
* modules/engines/pixbuf/pixbuf-main.c
* modules/engines/pixbuf/pixbuf-rc-style.c
* modules/input/gtkimcontextime.c
* modules/input/gtkimcontextxim.c
* modules/input/imam-et.c
* modules/input/imcedilla.c
* modules/input/imcyrillic-translit.c
* modules/input/iminuktitut.c
* modules/input/imipa.c
* modules/input/imthai-broken.c
* modules/input/imti-er.c
* modules/input/imti-et.c
* modules/input/imviqr.c
* tests/prop-editor.c
* tests/testentrycompletion.c
* tests/testfilechooser.c
* tests/testmerge.c
* tests/testtoolbar.c
* tests/testtreecolumns.c
* tests/testtreeview.c: get rid of unnecessary casts.
* tests/testgtk.c (create_labels): add GTK_LABEL() casts for
gtk_label_set_ellipsize() calls.
* tests/testicontheme.c (main): remove unused pixbuf variable.
2004-11-19 23:30:47 +00:00
Matthias Clasen
6fa44ae407
Use gtk_image_new_from_icon_name().
...
2004-10-25 Matthias Clasen <mclasen@redhat.com>
* tests/testicontheme.c (main): Use gtk_image_new_from_icon_name().
2004-10-25 14:09:49 +00:00
Matthias Clasen
4be48e0e58
Add a "display" option.
...
* tests/testicontheme.c: Add a "display" option.
2004-10-19 18:49:03 +00:00
Matthias Clasen
e746e7ffb8
Set the locale, tidy up output.
...
2004-10-19 Matthias Clasen <mclasen@redhat.com>
* tests/testicontheme.c: Set the locale, tidy up output.
2004-10-19 04:30:35 +00:00
Federico Mena Quintero
80581c3011
Fixes #136082 and #135265 , patch by Morten Welinder.
...
2004-03-05 Federico Mena Quintero <federico@ximian.com>
Fixes #136082 and #135265 , patch by Morten Welinder.
* configure.in: Use AC_SYS_LARGEFILE.
* */*.c: #include <config.h>
2004-03-06 03:38:59 +00:00
Owen Taylor
f728c3d298
Add a test program from gnome-desktop.
...
* tests/Makefile.am test/testicontheme.c: Add a test
program from gnome-desktop.
2003-07-03 21:26:35 +00:00