[gnome-packagekit/app-installer] Remove redundant calls to g_type_init()
- From: Matthias Klumpp <mak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-packagekit/app-installer] Remove redundant calls to g_type_init()
- Date: Wed, 24 Apr 2013 20:50:41 +0000 (UTC)
commit 482c8199644399a6644502362bc09a7e98e9efd9
Author: Matthias Klumpp <matthias tenstral net>
Date: Wed Apr 24 21:56:25 2013 +0200
Remove redundant calls to g_type_init()
This removes some compiler warnings.
src/gpk-dbus-service.c | 1 -
src/gpk-distro-upgrade.c | 1 -
src/gpk-install-catalog.c | 1 -
src/gpk-install-local-file.c | 1 -
src/gpk-install-mime-type.c | 1 -
src/gpk-install-package-name.c | 1 -
src/gpk-install-provide-file.c | 1 -
src/gpk-log.c | 1 -
src/gpk-prefs.c | 2 --
src/gpk-self-test.c | 1 -
src/gpk-service-pack.c | 4 +---
src/gpk-update-viewer.c | 1 -
12 files changed, 1 insertions(+), 15 deletions(-)
---
diff --git a/src/gpk-dbus-service.c b/src/gpk-dbus-service.c
index e1de468..6c0293c 100644
--- a/src/gpk-dbus-service.c
+++ b/src/gpk-dbus-service.c
@@ -147,7 +147,6 @@ main (int argc, char *argv[])
textdomain (GETTEXT_PACKAGE);
dbus_g_thread_init ();
- g_type_init ();
notify_init (_("Software Install"));
/* TRANSLATORS: program name, a session wide daemon to watch for updates and changing system state */
diff --git a/src/gpk-distro-upgrade.c b/src/gpk-distro-upgrade.c
index 4385316..aab985f 100644
--- a/src/gpk-distro-upgrade.c
+++ b/src/gpk-distro-upgrade.c
@@ -764,7 +764,6 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- g_type_init ();
gtk_init (&argc, &argv);
priv = g_new0 (GpkDistroUpgradePrivate, 1);
#ifdef HAVE_SYSTEMD
diff --git a/src/gpk-install-catalog.c b/src/gpk-install-catalog.c
index f4e30c6..77ab485 100644
--- a/src/gpk-install-catalog.c
+++ b/src/gpk-install-catalog.c
@@ -59,7 +59,6 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- g_type_init ();
gtk_init (&argc, &argv);
/* TRANSLATORS: program name: application to install a catalog of software */
diff --git a/src/gpk-install-local-file.c b/src/gpk-install-local-file.c
index 73826a6..7498f1b 100644
--- a/src/gpk-install-local-file.c
+++ b/src/gpk-install-local-file.c
@@ -58,7 +58,6 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- g_type_init ();
gtk_init (&argc, &argv);
/* TRANSLATORS: program name: application to install a package to provide a file */
diff --git a/src/gpk-install-mime-type.c b/src/gpk-install-mime-type.c
index 0a9c66c..f00f4ff 100644
--- a/src/gpk-install-mime-type.c
+++ b/src/gpk-install-mime-type.c
@@ -58,7 +58,6 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- g_type_init ();
gtk_init (&argc, &argv);
/* TRANSLATORS: program name: application to install a package to provide a mime type */
diff --git a/src/gpk-install-package-name.c b/src/gpk-install-package-name.c
index 415c207..0dde16a 100644
--- a/src/gpk-install-package-name.c
+++ b/src/gpk-install-package-name.c
@@ -57,7 +57,6 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- g_type_init ();
gtk_init (&argc, &argv);
/* TRANSLATORS: program name: installs a package (or packages) by name */
diff --git a/src/gpk-install-provide-file.c b/src/gpk-install-provide-file.c
index d687cf9..591c0c4 100644
--- a/src/gpk-install-provide-file.c
+++ b/src/gpk-install-provide-file.c
@@ -58,7 +58,6 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- g_type_init ();
gtk_init (&argc, &argv);
/* TRANSLATORS: program name, an application to install a file that is needed by an application and
is provided by packages */
diff --git a/src/gpk-log.c b/src/gpk-log.c
index 1406e4a..ea9ab29 100644
--- a/src/gpk-log.c
+++ b/src/gpk-log.c
@@ -820,7 +820,6 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- g_type_init ();
gtk_init (&argc, &argv);
context = g_option_context_new (NULL);
diff --git a/src/gpk-prefs.c b/src/gpk-prefs.c
index 6e9cf6d..8c11e01 100644
--- a/src/gpk-prefs.c
+++ b/src/gpk-prefs.c
@@ -956,8 +956,6 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- g_type_init ();
-
gtk_init (&argc, &argv);
priv = g_new0 (GpkPrefsPrivate, 1);
diff --git a/src/gpk-self-test.c b/src/gpk-self-test.c
index 89ff6f1..2a0c8c3 100644
--- a/src/gpk-self-test.c
+++ b/src/gpk-self-test.c
@@ -781,7 +781,6 @@ gpk_test_task_func (void)
int
main (int argc, char **argv)
{
- g_type_init ();
gtk_init (&argc, &argv);
g_test_init (&argc, &argv, NULL);
diff --git a/src/gpk-service-pack.c b/src/gpk-service-pack.c
index f9af413..286e048 100644
--- a/src/gpk-service-pack.c
+++ b/src/gpk-service-pack.c
@@ -170,7 +170,7 @@ gpk_pack_set_percentage (guint percentage)
g_source_remove (pulse_id);
pulse_id = 0;
}
-
+
progress_bar = GTK_PROGRESS_BAR (gtk_builder_get_object (builder, "progressbar_percentage"));
gtk_progress_bar_set_fraction (progress_bar, percentage / 100.0f);
}
@@ -875,8 +875,6 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- g_type_init ();
-
gtk_init (&argc, &argv);
/* are we already activated? */
diff --git a/src/gpk-update-viewer.c b/src/gpk-update-viewer.c
index 0b7dea3..94ea12c 100644
--- a/src/gpk-update-viewer.c
+++ b/src/gpk-update-viewer.c
@@ -3432,7 +3432,6 @@ main (int argc, char *argv[])
textdomain (GETTEXT_PACKAGE);
dbus_g_thread_init ();
- g_type_init ();
gtk_init (&argc, &argv);
context = g_option_context_new (NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]