Commit graph

15 commits

Author SHA1 Message Date
Bastien Nocera
727a88a3bd shell: Let libX11 initialise threads itself
Require a version of libX11 new enough that it will initialise threads
support itself.

See afcdb6fb00
2023-01-23 11:04:36 +00:00
Mohammed Sadiq
3b121805ed log: Improve logging
The 'tracing' build option is no longer needed.  And the verbosity
of logs can be set by providing '-v' multiple times.
2022-12-01 11:44:17 +00:00
Bastien Nocera
95de2049c7 shell: Initialise locale early
Otherwise glib will make internal calls before setlocale is called:
** (process:1124144): WARNING **: 10:16:58.983: dcgettext("(null)", "", 5) called before setlocale()

 #0  0x00007ffff7c80f77 in g_logv () at /lib64/libglib-2.0.so.0
 #1  0x00007ffff7c81233 in g_log () at /lib64/libglib-2.0.so.0
 #2  0x00007ffff7fbb6c6 in dcgettext (__domainname=<optimized out>, __msgid=0x7ffff7ce6c5a "", __category=<optimized out>) at ../../../../Projects/jhbuild/gettext-pseudolocale/gettext-pseudolocale.c:194
 #3  0x00007ffff7c6478e in _g_dgettext_should_translate () at /lib64/libglib-2.0.so.0
 #4  0x00007ffff7c6484b in g_dgettext () at /lib64/libglib-2.0.so.0
 #5  0x00007ffff7e98974 in g_application_class_intern_init () at /lib64/libgio-2.0.so.0
 #6  0x00007ffff7d9cfb8 in g_type_class_ref () at /lib64/libgobject-2.0.so.0
 #7  0x00007ffff7d9cc95 in g_type_class_ref () at /lib64/libgobject-2.0.so.0
 #8  0x00007ffff7d9cc95 in g_type_class_ref () at /lib64/libgobject-2.0.so.0
 #9  0x00007ffff7d9cc95 in g_type_class_ref () at /lib64/libgobject-2.0.so.0
 #10 0x00007ffff7d8671a in g_object_new_valist () at /lib64/libgobject-2.0.so.0
 #11 0x00007ffff7d867fd in g_object_new () at /lib64/libgobject-2.0.so.0
 #12 0x0000000000449bcc in cc_application_new () at ../../../../Projects/jhbuild/gnome-control-center/shell/cc-application.c:294
 #13 0x0000000000448fa6 in main (argc=1, argv=0x7fffffffd138) at ../../../../Projects/jhbuild/gnome-control-center/shell/main.c:55
2022-05-11 00:36:27 +02:00
Georges Basile Stavracas Neto
5ca53a0a78 Drop Cheese dependency
Cheese is not ready for GTK4, and probably won't ever be, so just
drop the dependency. We'll reimplement webcam support using PipeWire
later.
2021-12-14 22:34:21 -03:00
Adrien Plazas
726684e9e0 Adapt to changes in hdy_init()
It must now be called after initializing GTK, and doesn't take
parameters.
2020-07-20 08:04:28 +02:00
Benjamin Berg
6fc89e8e8d shell: Fix warning by marking initialize_dependencies static 2019-01-07 15:28:38 +01:00
Adrien Plazas
0ece578658 main: Init libhandy
This will allow to use libhandy's translations and to init its types.
2018-11-26 15:36:34 +01:00
Adrien Plazas
28de6f4c8a Factorize dependecies initialization
Add initialize_dependencies() to factorize the dependecies
initialization functions for better readability as another dependency
to initialize will be added in a following commit.
2018-11-26 15:36:31 +01:00
Adrien Plazas
8201c369a2 Fix the style of main()'s prototype 2018-11-26 15:36:11 +01:00
Georges Basile Stavracas Neto
4a34b693de main: Use g_autoptr to simplify code
With g_autoptr, we don't need to manually unref the
GtkApplication before returning its status. This
saves a few lines of code.
2018-01-21 10:37:29 -02:00
Christophe Fergeau
a70172cfea shell: Move cheese_gtk_init() call earlier
Now that we handle local command line arguments, the 'command_line'
vfunc can no longer get the initial argc/argv passed to the process.
Now, cheese_gtk_init() is called unconditionally from main()
where argc/argv are available.

https://bugzilla.gnome.org/show_bug.cgi?id=751597
2015-07-16 11:51:07 +02:00
Michael Catanzaro
14356d652b Revert "main: Disable SSLv3 because of POODLE"
This reverts commit 38e7ea475a.

Now that gnome-online-accounts uses WebKit2, we should not presume to
know more about TLS security than WebKit. In WebKit1 this was our
responsibility.

https://bugzilla.gnome.org/show_bug.cgi?id=745645
2015-03-05 10:15:35 -06:00
Debarshi Ray
38e7ea475a main: Disable SSLv3 because of POODLE
Since GOA is still using WebKit1, we need to set the environment
variable ourself. We can stop setting it once we port to WebKit2
because the network process will handle it for us.

https://bugzilla.gnome.org/show_bug.cgi?id=739960
2014-11-11 15:12:18 +01:00
Kalev Lember
a14e52b9ed main: Drop the use of EggListBox
Now that all panels have been ported, we no longer need to do
g_type_ensure.

https://bugzilla.gnome.org/show_bug.cgi?id=702164
2013-07-02 16:19:09 +01:00
William Jon McCann
64467d7f0a shell: Make the application a GtkApplication subclass
This promotes better encapsulation and allows us to move
application logic out of main() and rename the confusingly
named control-center.c to main.c

https://bugzilla.gnome.org/show_bug.cgi?id=692174
2013-02-18 16:40:44 +01:00