Hello community, here is the log from the commit of package sysprof for openSUSE:Factory checked in at 2018-11-08 09:46:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/sysprof (Old) and /work/SRC/openSUSE:Factory/.sysprof.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "sysprof" Thu Nov 8 09:46:44 2018 rev:14 rq:647065 version:3.30.2 Changes: -------- --- /work/SRC/openSUSE:Factory/sysprof/sysprof.changes 2018-10-17 08:15:28.927019454 +0200 +++ /work/SRC/openSUSE:Factory/.sysprof.new/sysprof.changes 2018-11-08 09:46:46.629220645 +0100 @@ -1,0 +2,8 @@ +Fri Nov 2 18:24:25 UTC 2018 - [email protected] + +- Update to version 3.30.2: + + The profiler menu button more properly handles changes to the + toplevel window. + + Fixes for i18n/l10n intialization. + +------------------------------------------------------------------- Old: ---- sysprof-3.30.1.tar.xz New: ---- sysprof-3.30.2.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ sysprof.spec ++++++ --- /var/tmp/diff_new_pack.SfmAJf/_old 2018-11-08 09:46:47.197219979 +0100 +++ /var/tmp/diff_new_pack.SfmAJf/_new 2018-11-08 09:46:47.205219969 +0100 @@ -18,7 +18,7 @@ Name: sysprof -Version: 3.30.1 +Version: 3.30.2 Release: 0 Summary: A system-wide Linux profiler License: GPL-3.0-or-later AND LGPL-2.1-or-later ++++++ sysprof-3.30.1.tar.xz -> sysprof-3.30.2.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysprof-3.30.1/NEWS new/sysprof-3.30.2/NEWS --- old/sysprof-3.30.1/NEWS 2018-09-25 02:47:40.000000000 +0200 +++ new/sysprof-3.30.2/NEWS 2018-10-31 07:04:02.000000000 +0100 @@ -1,3 +1,9 @@ +Overview of changes in Sysprof 3.30.2 +===================================== + + * The profiler menu button more properly handles changes to the toplevel window. + * Fixes for i18n/l10n intialization. + Overview of changes in Sysprof 3.30.1 ===================================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysprof-3.30.1/config.h.meson new/sysprof-3.30.2/config.h.meson --- old/sysprof-3.30.1/config.h.meson 2018-09-25 02:47:40.000000000 +0200 +++ new/sysprof-3.30.2/config.h.meson 1970-01-01 01:00:00.000000000 +0100 @@ -1,36 +0,0 @@ -/* Look for global separate debug info in this path */ -#mesondefine DEBUGDIR - -/* Define to 1 if translation of program messages to the user's native - language is requested. */ -#mesondefine ENABLE_NLS - -/* GETTEXT package name */ -#mesondefine GETTEXT_PACKAGE - -/* Define if perf supports clockid */ -#mesondefine HAVE_PERF_CLOCKID - -/* Name of package */ -#mesondefine PACKAGE - -/* Define to the address where bug reports for this package should be sent. */ -#mesondefine PACKAGE_BUGREPORT - -/* Define to the full name of this package. */ -#mesondefine PACKAGE_NAME - -/* Define to the full name and version of this package. */ -#mesondefine PACKAGE_STRING - -/* Define to the one symbol short name of this package. */ -#mesondefine PACKAGE_TARNAME - -/* Define to the home page for this package. */ -#mesondefine PACKAGE_URL - -/* Define to the version of this package. */ -#mesondefine PACKAGE_VERSION - -/* Version number of package */ -#mesondefine VERSION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysprof-3.30.1/lib/widgets/sp-profiler-menu-button.c new/sysprof-3.30.2/lib/widgets/sp-profiler-menu-button.c --- old/sysprof-3.30.1/lib/widgets/sp-profiler-menu-button.c 2018-09-25 02:47:40.000000000 +0200 +++ new/sysprof-3.30.2/lib/widgets/sp-profiler-menu-button.c 2018-10-31 07:04:02.000000000 +0100 @@ -479,6 +479,9 @@ priv->save_env_source = 0; + if (priv->environment_model == NULL) + return G_SOURCE_REMOVE; + settings = g_settings_new ("org.gnome.sysprof2"); ar = g_ptr_array_new_with_free_func (g_free); @@ -525,6 +528,12 @@ g_clear_object (&priv->process_filter); + if (priv->save_env_source) + { + g_source_remove (priv->save_env_source); + priv->save_env_source = 0; + } + GTK_WIDGET_CLASS (sp_profiler_menu_button_parent_class)->destroy (widget); } @@ -622,15 +631,24 @@ GtkTreeIter iter; g_assert (SP_IS_PROFILER_MENU_BUTTON (self)); + g_assert (GTK_IS_TREE_MODEL (priv->environment_model)); /* queue saving settings to gsettings */ if (priv->save_env_source) g_source_remove (priv->save_env_source); - priv->save_env_source = g_timeout_add_seconds (1, save_environ_to_gsettings, self); + priv->save_env_source = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, + 1, + save_environ_to_gsettings, + g_object_ref (self), + g_object_unref); + + if (priv->profiler == NULL) + return; /* sync the environ to the profiler */ env = g_ptr_array_new_with_free_func (g_free); - model = gtk_tree_view_get_model (priv->env_tree_view); + model = priv->environment_model; + if (gtk_tree_model_get_iter_first (model, &iter)) { do diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysprof-3.30.1/meson.build new/sysprof-3.30.2/meson.build --- old/sysprof-3.30.1/meson.build 2018-09-25 02:47:40.000000000 +0200 +++ new/sysprof-3.30.2/meson.build 2018-10-31 07:04:02.000000000 +0100 @@ -1,6 +1,6 @@ project('sysprof', ['c', 'cpp'], license: ['GPL3+', 'GPL2+'], - version: '3.30.1', + version: '3.30.2', meson_version: '>=0.40.1', default_options: [ 'c_std=gnu11', @@ -29,6 +29,8 @@ config_h.set_quoted('GETTEXT_PACKAGE', 'sysprof') config_h.set10('ENABLE_NLS', true) +config_h.set_quoted('PACKAGE_LOCALE_DIR', join_paths(get_option('prefix'), get_option('datadir'), 'locale')) +config_h.set('LOCALEDIR', 'PACKAGE_LOCALE_DIR') has_use_clockid = cc.has_member('struct perf_event_attr', 'use_clockid', prefix: '#include <linux/perf_event.h>') has_clockid = cc.has_member('struct perf_event_attr', 'clockid', prefix: '#include <linux/perf_event.h>') @@ -146,7 +148,6 @@ endif configure_file( - input: 'config.h.meson', output: 'config.h', configuration: config_h ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sysprof-3.30.1/src/sp-application.c new/sysprof-3.30.2/src/sp-application.c --- old/sysprof-3.30.1/src/sp-application.c 2018-09-25 02:47:40.000000000 +0200 +++ new/sysprof-3.30.2/src/sp-application.c 2018-10-31 07:04:02.000000000 +0100 @@ -16,11 +16,10 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "config.h" #include <glib/gi18n.h> +#include <locale.h> #include "sp-application.h" #include "sp-credits.h" @@ -320,6 +319,14 @@ { "quit", sysprof_quit }, }; + setlocale (LC_ALL, ""); + + bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + textdomain (GETTEXT_PACKAGE); + + g_set_application_name (_("Sysprof")); + g_action_map_add_action_entries (G_ACTION_MAP (self), actions, G_N_ELEMENTS (actions), self); g_application_set_default (G_APPLICATION (self));
