mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-05 19:15:32 +00:00
application: Don't return value in start_proper()
It never returned FALSE, so change function prototype accordingly.
This commit is contained in:
parent
8c6d64ddaf
commit
3badf72725
1 changed files with 6 additions and 9 deletions
|
@ -74,7 +74,7 @@ struct _CallsApplication {
|
||||||
G_DEFINE_TYPE (CallsApplication, calls_application, GTK_TYPE_APPLICATION);
|
G_DEFINE_TYPE (CallsApplication, calls_application, GTK_TYPE_APPLICATION);
|
||||||
|
|
||||||
|
|
||||||
static gboolean start_proper (CallsApplication *self);
|
static void start_proper (CallsApplication *self);
|
||||||
|
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
@ -534,13 +534,13 @@ notify_window_visible_cb (GtkWidget *window,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static gboolean
|
static void
|
||||||
start_proper (CallsApplication *self)
|
start_proper (CallsApplication *self)
|
||||||
{
|
{
|
||||||
GtkApplication *gtk_app;
|
GtkApplication *gtk_app;
|
||||||
|
|
||||||
if (self->main_window) {
|
if (self->main_window) {
|
||||||
return TRUE;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_app = GTK_APPLICATION (self);
|
gtk_app = GTK_APPLICATION (self);
|
||||||
|
@ -566,10 +566,9 @@ start_proper (CallsApplication *self)
|
||||||
"notify::visible",
|
"notify::visible",
|
||||||
G_CALLBACK (notify_window_visible_cb),
|
G_CALLBACK (notify_window_visible_cb),
|
||||||
self);
|
self);
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
activate (GApplication *application)
|
activate (GApplication *application)
|
||||||
{
|
{
|
||||||
|
@ -581,10 +580,7 @@ activate (GApplication *application)
|
||||||
if (self->main_window) {
|
if (self->main_window) {
|
||||||
present = TRUE;
|
present = TRUE;
|
||||||
} else {
|
} else {
|
||||||
gboolean ok = start_proper (self);
|
start_proper (self);
|
||||||
if (!ok)
|
|
||||||
return;
|
|
||||||
|
|
||||||
present = !self->daemon;
|
present = !self->daemon;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -604,6 +600,7 @@ activate (GApplication *application)
|
||||||
g_clear_pointer (&self->uri, g_free);
|
g_clear_pointer (&self->uri, g_free);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
app_open (GApplication *application,
|
app_open (GApplication *application,
|
||||||
GFile **files,
|
GFile **files,
|
||||||
|
|
Loading…
Reference in a new issue