[gnome-control-center] window: Remove unnecessary wrapper functions
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] window: Remove unnecessary wrapper functions
- Date: Sun, 21 Jan 2018 12:33:03 +0000 (UTC)
commit 3632bc7dadeb880adb356aebda0e505ce9b687dc
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sun Jan 21 10:20:06 2018 -0200
window: Remove unnecessary wrapper functions
These were only used by CcApplication, and at this level
of the program we don't need to use any wrapper functions,
since we're certain that the CcWindow is a GtkWindow subclass.
shell/cc-application.c | 4 ++--
shell/cc-window.c | 12 ------------
shell/cc-window.h | 4 ----
3 files changed, 2 insertions(+), 18 deletions(-)
---
diff --git a/shell/cc-application.c b/shell/cc-application.c
index 50f1c86..43795a7 100644
--- a/shell/cc-application.c
+++ b/shell/cc-application.c
@@ -138,7 +138,7 @@ cc_application_command_line (GApplication *application,
debug = g_variant_dict_contains (options, "verbose");
cc_shell_log_set_debug (debug);
- cc_window_show (self->priv->window);
+ gtk_window_present (GTK_WINDOW (self->priv->window));
if (g_variant_dict_lookup (options, "search", "&s", &search_str))
{
@@ -204,7 +204,7 @@ cc_application_activate (GApplication *application)
{
CcApplication *self = CC_APPLICATION (application);
- cc_window_present (self->priv->window);
+ gtk_window_present (GTK_WINDOW (self->priv->window));
}
static void
diff --git a/shell/cc-window.c b/shell/cc-window.c
index 3d1e0fb..1f0a6c0 100644
--- a/shell/cc-window.c
+++ b/shell/cc-window.c
@@ -753,18 +753,6 @@ cc_window_new (GtkApplication *application)
}
void
-cc_window_present (CcWindow *center)
-{
- gtk_window_present (GTK_WINDOW (center));
-}
-
-void
-cc_window_show (CcWindow *center)
-{
- gtk_window_present (GTK_WINDOW (center));
-}
-
-void
cc_window_set_overview_page (CcWindow *center)
{
shell_show_overview_page (center);
diff --git a/shell/cc-window.h b/shell/cc-window.h
index cc9ebb6..cac2709 100644
--- a/shell/cc-window.h
+++ b/shell/cc-window.h
@@ -32,10 +32,6 @@ G_DECLARE_FINAL_TYPE (CcWindow, cc_window, CC, WINDOW, GtkApplicationWindow)
CcWindow *cc_window_new (GtkApplication *application);
-void cc_window_present (CcWindow *center);
-
-void cc_window_show (CcWindow *center);
-
void cc_window_set_overview_page (CcWindow *center);
void cc_window_set_search_item (CcWindow *center,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]