[gnome-software] Rename a few functions
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Rename a few functions
- Date: Sat, 31 Aug 2013 23:09:13 +0000 (UTC)
commit 5b574efe107931e89d2b43f0c7afed736f6c308f
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Aug 31 18:40:31 2013 -0400
Rename a few functions
src/gs-shell-category.c | 2 +-
src/gs-shell-overview.c | 2 +-
src/gs-shell.c | 19 +++++++------------
src/gs-shell.h | 2 +-
4 files changed, 10 insertions(+), 15 deletions(-)
---
diff --git a/src/gs-shell-category.c b/src/gs-shell-category.c
index 2842ce9..298709c 100644
--- a/src/gs-shell-category.c
+++ b/src/gs-shell-category.c
@@ -60,7 +60,7 @@ app_tile_clicked (GtkButton *button, gpointer data)
GsApp *app;
app = g_object_get_data (G_OBJECT (button), "app");
- gs_shell_show_details (shell->priv->shell, app);
+ gs_shell_show_app (shell->priv->shell, app);
}
static GtkWidget *
diff --git a/src/gs-shell-overview.c b/src/gs-shell-overview.c
index a418a72..42f9ed9 100644
--- a/src/gs-shell-overview.c
+++ b/src/gs-shell-overview.c
@@ -79,7 +79,7 @@ app_tile_clicked (GtkButton *button, gpointer data)
GsApp *app;
app = g_object_get_data (G_OBJECT (button), "app");
- gs_shell_show_details (shell_overview->priv->shell, app);
+ gs_shell_show_app (shell_overview->priv->shell, app);
}
static GtkWidget *
diff --git a/src/gs-shell.c b/src/gs-shell.c
index ca2f29d..a164f3a 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -55,8 +55,6 @@ struct GsShellPrivate
G_DEFINE_TYPE (GsShell, gs_shell, G_TYPE_OBJECT)
-static void gs_shell_set_overview_mode (GsShell *shell, GsShellMode mode, GsApp *app, GsCategory *category);
-
/**
* gs_shell_activate:
**/
@@ -68,11 +66,8 @@ gs_shell_activate (GsShell *shell)
gtk_window_present (window);
}
-/**
- * gs_shell_set_overview_mode:
- **/
static void
-gs_shell_set_overview_mode (GsShell *shell, GsShellMode mode, GsApp *app, GsCategory *category)
+gs_shell_change_mode (GsShell *shell, GsShellMode mode, GsApp *app, GsCategory *category)
{
GsShellPrivate *priv = shell->priv;
GtkWidget *widget;
@@ -154,7 +149,7 @@ gs_shell_overview_button_cb (GtkWidget *widget, GsShell *shell)
GsShellMode mode;
mode = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (widget),
"gnome-software::overview-mode"));
- gs_shell_set_overview_mode (shell, mode, NULL, NULL);
+ gs_shell_change_mode (shell, mode, NULL, NULL);
}
/**
@@ -163,7 +158,7 @@ gs_shell_overview_button_cb (GtkWidget *widget, GsShell *shell)
static void
gs_shell_back_button_cb (GtkWidget *widget, GsShell *shell)
{
- gs_shell_set_overview_mode (shell, shell->priv->tab_back_id, NULL, NULL);
+ gs_shell_change_mode (shell, shell->priv->tab_back_id, NULL, NULL);
}
static void
@@ -413,7 +408,7 @@ gs_shell_setup (GsShell *shell, GsPluginLoader *plugin_loader, GCancellable *can
void
gs_shell_set_mode (GsShell *shell, GsShellMode mode)
{
- gs_shell_set_overview_mode (shell, mode, NULL, NULL);
+ gs_shell_change_mode (shell, mode, NULL, NULL);
}
GsShellMode
@@ -425,15 +420,15 @@ gs_shell_get_mode (GsShell *shell)
}
void
-gs_shell_show_details (GsShell *shell, GsApp *app)
+gs_shell_show_app (GsShell *shell, GsApp *app)
{
- gs_shell_set_overview_mode (shell, GS_SHELL_MODE_DETAILS, app, NULL);
+ gs_shell_change_mode (shell, GS_SHELL_MODE_DETAILS, app, NULL);
}
void
gs_shell_show_category (GsShell *shell, GsCategory *category)
{
- gs_shell_set_overview_mode (shell, GS_SHELL_MODE_CATEGORY, NULL, category);
+ gs_shell_change_mode (shell, GS_SHELL_MODE_CATEGORY, NULL, category);
}
/**
diff --git a/src/gs-shell.h b/src/gs-shell.h
index c2e9f54..4179aa7 100644
--- a/src/gs-shell.h
+++ b/src/gs-shell.h
@@ -69,7 +69,7 @@ void gs_shell_refresh (GsShell *shell,
void gs_shell_set_mode (GsShell *shell,
GsShellMode mode);
GsShellMode gs_shell_get_mode (GsShell *shell);
-void gs_shell_show_details (GsShell *shell,
+void gs_shell_show_app (GsShell *shell,
GsApp *app);
void gs_shell_show_category (GsShell *shell,
GsCategory *category);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]