mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-11-12 19:41:18 +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
e28b15b41a
commit
bcb4061db1
1 changed files with 6 additions and 9 deletions
|
@ -74,7 +74,7 @@ struct _CallsApplication {
|
|||
G_DEFINE_TYPE (CallsApplication, calls_application, GTK_TYPE_APPLICATION);
|
||||
|
||||
|
||||
static gboolean start_proper (CallsApplication *self);
|
||||
static void start_proper (CallsApplication *self);
|
||||
|
||||
|
||||
static gboolean
|
||||
|
@ -534,13 +534,13 @@ notify_window_visible_cb (GtkWidget *window,
|
|||
}
|
||||
|
||||
|
||||
static gboolean
|
||||
static void
|
||||
start_proper (CallsApplication *self)
|
||||
{
|
||||
GtkApplication *gtk_app;
|
||||
|
||||
if (self->main_window) {
|
||||
return TRUE;
|
||||
return;
|
||||
}
|
||||
|
||||
gtk_app = GTK_APPLICATION (self);
|
||||
|
@ -566,10 +566,9 @@ start_proper (CallsApplication *self)
|
|||
"notify::visible",
|
||||
G_CALLBACK (notify_window_visible_cb),
|
||||
self);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
activate (GApplication *application)
|
||||
{
|
||||
|
@ -581,10 +580,7 @@ activate (GApplication *application)
|
|||
if (self->main_window) {
|
||||
present = TRUE;
|
||||
} else {
|
||||
gboolean ok = start_proper (self);
|
||||
if (!ok)
|
||||
return;
|
||||
|
||||
start_proper (self);
|
||||
present = !self->daemon;
|
||||
}
|
||||
|
||||
|
@ -604,6 +600,7 @@ activate (GApplication *application)
|
|||
g_clear_pointer (&self->uri, g_free);
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
app_open (GApplication *application,
|
||||
GFile **files,
|
||||
|
|
Loading…
Reference in a new issue