Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
d0b34296
Commit
d0b34296
authored
13 years ago
by
Tristan Matthews
Browse files
Options
Downloads
Patches
Plain Diff
* #9145: removed deprecated g_atexit call
parent
41d66a31
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
gnome/src/eel-gconf-extensions.c
+3
-7
3 additions, 7 deletions
gnome/src/eel-gconf-extensions.c
gnome/src/eel-gconf-extensions.h
+41
-43
41 additions, 43 deletions
gnome/src/eel-gconf-extensions.h
gnome/src/main.c
+1
-0
1 addition, 0 deletions
gnome/src/main.c
with
45 additions
and
50 deletions
gnome/src/eel-gconf-extensions.c
+
3
−
7
View file @
d0b34296
...
@@ -34,12 +34,10 @@
...
@@ -34,12 +34,10 @@
static
GConfClient
*
global_gconf_client
=
NULL
;
static
GConfClient
*
global_gconf_client
=
NULL
;
static
void
void
eel_gconf_global_client_free
(
void
)
global_client_free
(
void
)
{
{
if
(
global_gconf_client
==
NULL
)
{
if
(
global_gconf_client
==
NULL
)
return
;
return
;
}
g_object_unref
(
G_OBJECT
(
global_gconf_client
));
g_object_unref
(
G_OBJECT
(
global_gconf_client
));
global_gconf_client
=
NULL
;
global_gconf_client
=
NULL
;
...
@@ -82,10 +80,8 @@ eel_gconf_client_get_global(void)
...
@@ -82,10 +80,8 @@ eel_gconf_client_get_global(void)
}
}
if
(
global_gconf_client
==
NULL
)
{
if
(
global_gconf_client
==
NULL
)
global_gconf_client
=
gconf_client_get_default
();
global_gconf_client
=
gconf_client_get_default
();
g_atexit
(
global_client_free
);
}
return
global_gconf_client
;
return
global_gconf_client
;
}
}
...
...
This diff is collapsed.
Click to expand it.
gnome/src/eel-gconf-extensions.h
+
41
−
43
View file @
d0b34296
...
@@ -58,46 +58,45 @@ BEGIN_EXTERN_C
...
@@ -58,46 +58,45 @@ BEGIN_EXTERN_C
#define EEL_GCONF_UNDEFINED_CONNECTION 0
#define EEL_GCONF_UNDEFINED_CONNECTION 0
GConfClient
*
eel_gconf_client_get_global
(
void
);
GConfClient
*
eel_gconf_client_get_global
(
void
);
void
eel_gconf_global_client_free
(
void
);
gboolean
eel_gconf_handle_error
(
GError
**
error
);
gboolean
eel_gconf_handle_error
(
GError
**
error
);
void
eel_gconf_set_boolean
(
const
char
*
key
,
gboolean
boolean_value
);
gboolean
eel_gconf_get_boolean
(
const
char
*
key
);
int
eel_gconf_get_integer
(
const
char
*
key
);
void
eel_gconf_set_integer
(
const
char
*
key
,
int
int_value
);
gfloat
eel_gconf_get_float
(
const
char
*
key
);
void
eel_gconf_set_float
(
const
char
*
key
,
gfloat
float_value
);
char
*
eel_gconf_get_string
(
const
char
*
key
);
void
eel_gconf_set_string
(
const
char
*
key
,
const
char
*
string_value
);
GSList
*
eel_gconf_get_string_list
(
const
char
*
key
);
void
eel_gconf_set_string_list
(
const
char
*
key
,
const
GSList
*
string_list_value
);
gboolean
eel_gconf_is_default
(
const
char
*
key
);
gboolean
eel_gconf_monitor_add
(
const
char
*
directory
);
gboolean
eel_gconf_monitor_remove
(
const
char
*
directory
);
void
eel_gconf_suggest_sync
(
void
);
GConfValue
*
eel_gconf_get_value
(
const
char
*
key
);
gboolean
eel_gconf_value_is_equal
(
const
GConfValue
*
a
,
const
GConfValue
*
b
);
void
eel_gconf_set_value
(
const
char
*
key
,
const
GConfValue
*
value
);
gboolean
eel_gconf_key_exists
(
const
char
*
key
);
void
eel_gconf_set_boolean
(
const
gchar
*
key
,
gboolean
boolean_value
);
gboolean
eel_gconf_get_boolean
(
const
gchar
*
key
);
int
eel_gconf_get_integer
(
const
gchar
*
key
);
void
eel_gconf_set_integer
(
const
gchar
*
key
,
gint
value
);
gfloat
eel_gconf_get_float
(
const
gchar
*
key
);
void
eel_gconf_set_float
(
const
gchar
*
key
,
gfloat
value
);
gchar
*
eel_gconf_get_string
(
const
gchar
*
key
);
void
eel_gconf_set_string
(
const
gchar
*
key
,
const
gchar
*
value
);
GSList
*
eel_gconf_get_string_list
(
const
gchar
*
key
);
void
eel_gconf_set_string_list
(
const
gchar
*
key
,
const
GSList
*
value
);
gboolean
eel_gconf_is_default
(
const
gchar
*
key
);
gboolean
eel_gconf_monitor_add
(
const
gchar
*
directory
);
gboolean
eel_gconf_monitor_remove
(
const
gchar
*
directory
);
void
eel_gconf_suggest_sync
(
void
);
GConfValue
*
eel_gconf_get_value
(
const
gchar
*
key
);
gboolean
eel_gconf_value_is_equal
(
const
GConfValue
*
a
,
const
GConfValue
*
b
);
void
eel_gconf_set_value
(
const
gchar
*
key
,
const
GConfValue
*
value
);
gboolean
eel_gconf_key_exists
(
const
gchar
*
key
);
void
eel_gconf_value_free
(
GConfValue
*
value
);
void
eel_gconf_value_free
(
GConfValue
*
value
);
void
eel_gconf_unset
(
const
char
*
key
);
void
eel_gconf_unset
(
const
g
char
*
key
);
/* Functions which weren't part of the eel-gconf-extensions.h file from eel */
/* Functions which weren't part of the eel-gconf-extensions.h file from eel */
GSList
*
eel_gconf_get_integer_list
(
const
char
*
key
);
GSList
*
eel_gconf_get_integer_list
(
const
gchar
*
key
);
void
eel_gconf_set_integer_list
(
const
char
*
key
,
void
eel_gconf_set_integer_list
(
const
gchar
*
key
,
const
GSList
*
slist
);
const
GSList
*
slist
);
void
gpdf_notification_add
(
const
gchar
*
key
,
GConfClientNotifyFunc
notification_callback
,
void
gpdf_notification_add
(
const
char
*
key
,
gpointer
callback_data
,
GList
**
notifiers
);
GConfClientNotifyFunc
notification_callback
,
gpointer
callback_data
,
GList
**
notifiers
);
void
gpdf_notification_remove
(
GList
**
notifiers
);
void
gpdf_notification_remove
(
GList
**
notifiers
);
guint
eel_gconf_notification_add
(
const
char
*
key
,
guint
eel_gconf_notification_add
(
const
g
char
*
key
,
GConfClientNotifyFunc
notification_callback
,
GConfClientNotifyFunc
notification_callback
,
gpointer
callback_data
);
gpointer
callback_data
);
void
eel_gconf_notification_remove
(
guint
notification_id
);
void
eel_gconf_notification_remove
(
guint
notification_id
);
...
@@ -107,4 +106,3 @@ END_EXTERN_C
...
@@ -107,4 +106,3 @@ END_EXTERN_C
#endif
#endif
#endif
/* EEL_GCONF_EXTENSIONS_H */
#endif
/* EEL_GCONF_EXTENSIONS_H */
This diff is collapsed.
Click to expand it.
gnome/src/main.c
+
1
−
0
View file @
d0b34296
...
@@ -129,6 +129,7 @@ main(int argc, char *argv[])
...
@@ -129,6 +129,7 @@ main(int argc, char *argv[])
shortcuts_destroy_bindings
();
shortcuts_destroy_bindings
();
eel_gconf_global_client_free
();
OUT:
OUT:
#if !GTK_CHECK_VERSION(2,32,0)
#if !GTK_CHECK_VERSION(2,32,0)
gdk_threads_leave
();
gdk_threads_leave
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment