Merge lp:~cyphermox/indicator-session/g_type_init into lp:indicator-session/13.04

Proposed by Mathieu Trudel-Lapierre
Status: Merged
Approved by: Didier Roche-Tolomelli
Approved revision: 384
Merged at revision: 382
Proposed branch: lp:~cyphermox/indicator-session/g_type_init
Merge into: lp:indicator-session/13.04
Diff against target: 81 lines (+6/-7)
6 files modified
configure.ac (+1/-1)
debian/changelog (+1/-0)
debian/control (+2/-1)
src/session-service.c (+0/-2)
tests/Makefile.am (+2/-2)
tests/test-service.cc (+0/-1)
To merge this branch: bzr merge lp:~cyphermox/indicator-session/g_type_init
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Didier Roche-Tolomelli Approve
Review via email: mp+144322@code.launchpad.net

Description of the change

Misc fixes for build on raring:

 - Drop deprecated calls to g_type_init().
 - Update paths to gtest source files due to changes in xorg-gtest.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

the change is good to me, but it seems tests are still failing due to jenkins ^

384. By Mathieu Trudel-Lapierre

Add libxorg-gtest-dev to Build-Depends.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Let's try to get that in!

review: Approve
Revision history for this message
Allan LeSage (allanlesage) wrote :

I see the problem and will fix.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'configure.ac'
--- configure.ac 2012-11-30 16:24:17 +0000
+++ configure.ac 2013-01-22 15:51:20 +0000
@@ -26,7 +26,7 @@
26###########################26###########################
2727
28GIO_REQUIRED_VERSION=2.3328GIO_REQUIRED_VERSION=2.33
29GLIB_REQUIRED_VERSION=2.3329GLIB_REQUIRED_VERSION=2.35.4
30GTK_REQUIRED_VERSION=3.030GTK_REQUIRED_VERSION=3.0
31INDICATOR_REQUIRED_VERSION=0.3.1931INDICATOR_REQUIRED_VERSION=0.3.19
32DBUSMENUGTK_REQUIRED_VERSION=0.5.9032DBUSMENUGTK_REQUIRED_VERSION=0.5.90
3333
=== modified file 'debian/changelog'
--- debian/changelog 2013-01-15 22:52:32 +0000
+++ debian/changelog 2013-01-22 15:51:20 +0000
@@ -15,6 +15,7 @@
15 from Build-Depends. (LP: #1085100)15 from Build-Depends. (LP: #1085100)
16 - Remove packagekit from Recommends16 - Remove packagekit from Recommends
17 - Add XS-Testsuite: autopkgtest.17 - Add XS-Testsuite: autopkgtest.
18 - Add libxorg-gtest-dev to Build-Depends.
18 * debian/tests:19 * debian/tests:
19 - Add start-service test; verify that the indicator can be started from20 - Add start-service test; verify that the indicator can be started from
20 DBUS.21 DBUS.
2122
=== modified file 'debian/control'
--- debian/control 2013-01-15 22:52:32 +0000
+++ debian/control 2013-01-22 15:51:20 +0000
@@ -8,10 +8,11 @@
8 intltool,8 intltool,
9 gnome-common,9 gnome-common,
10 libgtest-dev,10 libgtest-dev,
11 libxorg-gtest-dev,
11 libdbustest1-dev,12 libdbustest1-dev,
12 dbus-test-runner,13 dbus-test-runner,
13 libgtk-3-dev,14 libgtk-3-dev,
14 libglib2.0-dev (>= 2.33),15 libglib2.0-dev (>= 2.35.4),
15 gnome-doc-utils,16 gnome-doc-utils,
16 libindicator3-dev (>= 0.3.90),17 libindicator3-dev (>= 0.3.90),
17 libdbusmenu-glib-dev (>= 0.5.90),18 libdbusmenu-glib-dev (>= 0.5.90),
1819
=== modified file 'src/session-service.c'
--- src/session-service.c 2012-08-31 17:37:39 +0000
+++ src/session-service.c 2013-01-22 15:51:20 +0000
@@ -71,8 +71,6 @@
71int71int
72main (int argc, char ** argv)72main (int argc, char ** argv)
73{73{
74 g_type_init();
75
76 /* Setting up i18n and gettext.74 /* Setting up i18n and gettext.
77 Apparently we need all of these. */75 Apparently we need all of these. */
78 setlocale (LC_ALL, "");76 setlocale (LC_ALL, "");
7977
=== modified file 'tests/Makefile.am'
--- tests/Makefile.am 2013-01-14 19:36:28 +0000
+++ tests/Makefile.am 2013-01-22 15:51:20 +0000
@@ -15,8 +15,8 @@
1515
16check_LIBRARIES = libgtest.a16check_LIBRARIES = libgtest.a
17nodist_libgtest_a_SOURCES = \17nodist_libgtest_a_SOURCES = \
18 $(GTEST_SOURCE)/src/gtest-all.cc \18 $(GTEST_SOURCE)/gtest-all.cc \
19 $(GTEST_SOURCE)/src/gtest_main.cc19 $(GTEST_SOURCE)/gtest_main.cc
2020
21AM_CPPFLAGS = $(GTEST_CPPFLAGS) -I${top_srcdir}/src -Wall -Werror21AM_CPPFLAGS = $(GTEST_CPPFLAGS) -I${top_srcdir}/src -Wall -Werror
22AM_CXXFLAGS = $(GTEST_CXXFLAGS)22AM_CXXFLAGS = $(GTEST_CXXFLAGS)
2323
=== modified file 'tests/test-service.cc'
--- tests/test-service.cc 2012-11-13 20:08:13 +0000
+++ tests/test-service.cc 2013-01-22 15:51:20 +0000
@@ -49,7 +49,6 @@
49 static bool first_run = true;49 static bool first_run = true;
50 if (first_run)50 if (first_run)
51 {51 {
52 g_type_init();
53 g_setenv ("INDICATOR_SERVICE_SHUTDOWN_TIMEOUT", "1000", TRUE);52 g_setenv ("INDICATOR_SERVICE_SHUTDOWN_TIMEOUT", "1000", TRUE);
54 g_unsetenv ("INDICATOR_ALLOW_NO_WATCHERS");53 g_unsetenv ("INDICATOR_ALLOW_NO_WATCHERS");
55 g_unsetenv ("INDICATOR_SERVICE_REPLACE_MODE");54 g_unsetenv ("INDICATOR_SERVICE_REPLACE_MODE");

Subscribers

People subscribed via source and target branches