gnome-packagekit r98 - in trunk: . data po src
- From: rhughes svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-packagekit r98 - in trunk: . data po src
- Date: Tue, 19 Feb 2008 00:17:49 +0000 (GMT)
Author: rhughes
Date: Tue Feb 19 00:17:49 2008
New Revision: 98
URL: http://svn.gnome.org/viewvc/gnome-packagekit?rev=98&view=rev
Log:
from git
Modified:
trunk/NEWS
trunk/configure.in
trunk/data/gnome-packagekit.schemas.in
trunk/po/ChangeLog
trunk/po/LINGUAS
trunk/src/Makefile.am
trunk/src/pk-application.c
trunk/src/pk-common-gui.c
trunk/src/pk-common-gui.h
trunk/src/pk-update-viewer.c
Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS (original)
+++ trunk/NEWS Tue Feb 19 00:17:49 2008
@@ -1,3 +1,33 @@
+Version 0.1.7
+~~~~~~~~~~~~~
+Released: 2008-02-10
+
+* Translations
+ - Use translations at runtime, plus mark more strings for translation (Luca Ferretti)
+ - Fix a lot of localisation problems (Andre Klapper)
+ - Updated Spanish translation (Jorge Gonzalez)
+ - Updated Occitan translation (Yannig Marchegay)
+
+* New features:
+ - Add a libsexy search type text box (Richard Hughes)
+ - Add a build dependency on libsexy (Richard Hughes)
+ - Use the data from libpackagekit to display the icon and translated summary
+ if this information is available (Richard Hughes)
+ - Add a cancelling state, as cancelling might actually take some time (Richard Hughes)
+ - Alphabetically sort the repository list in pk-repo (Richard Hughes)
+ - Add some update icons with different severity (Richard Hughes)
+
+* Bugfixes:
+ - Convert the glade files to glade-3 format (Richard Hughes)
+ - Add some more detailed error descriptions and display them in a error page
+ not a modal box (Richard Hughes)
+ - Reliably hide the cancel button if we can't do the action (Richard Hughes)
+ - Choose the best (i.e. most important) themed icon in the status area (Richard Hughes)
+ - Add and run a script inspired from Nicu Buculei that saves the svg files as
+ plain svg and vacuumed. The size difference is pretty huge (Richard Hughes)
+ - Fix build by adding #include's for locale.h (Scott Reeves)
+ - GNOME HIG fixes for preferences dialog. Fixes bug #14152 (Luca Ferretti)
+
Version 0.1.6
~~~~~~~~~~~~~
Released: 2008-01-18
Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in (original)
+++ trunk/configure.in Tue Feb 19 00:17:49 2008
@@ -1,6 +1,6 @@
AC_PREREQ(2.52)
-AC_INIT(gnome-packagekit, 0.1.7)
+AC_INIT(gnome-packagekit, 0.1.8)
AC_CONFIG_SRCDIR(src)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AM_CONFIG_HEADER(config.h)
Modified: trunk/data/gnome-packagekit.schemas.in
==============================================================================
--- trunk/data/gnome-packagekit.schemas.in (original)
+++ trunk/data/gnome-packagekit.schemas.in Tue Feb 19 00:17:49 2008
@@ -86,14 +86,14 @@
</schema>
<schema>
- <key>/schemas/apps/gnome-packagekit/find_as_you_type</key>
- <applyto>/apps/gnome-packagekit/find_as_you_type</applyto>
+ <key>/schemas/apps/gnome-packagekit/autocomplete</key>
+ <applyto>/apps/gnome-packagekit/autocomplete</applyto>
<owner>gnome-packagekit</owner>
<type>bool</type>
<default>true</default>
<locale name="C">
- <short>If searches should be done for each letter</short>
- <long>If searches should be done for each letter</long>
+ <short>If autocompletion should be used when searching</short>
+ <long>If autocompletion should be used when searching</long>
</locale>
</schema>
Modified: trunk/po/LINGUAS
==============================================================================
--- trunk/po/LINGUAS (original)
+++ trunk/po/LINGUAS Tue Feb 19 00:17:49 2008
@@ -11,11 +11,11 @@
he
hu
it
+ja
nb
nl
oc
+pl
pt_BR
sv
-pl
-ja
-
+tr
Modified: trunk/src/Makefile.am
==============================================================================
--- trunk/src/Makefile.am (original)
+++ trunk/src/Makefile.am Tue Feb 19 00:17:49 2008
@@ -120,6 +120,7 @@
pk_application_LDADD = \
$(GLIB_LIBS) \
$(DBUS_LIBS) \
+ $(GCONF_LIBS) \
$(LIBGLADE_LIBS) \
$(LIBSEXY_LIBS) \
$(GTK_LIBS) \
Modified: trunk/src/pk-application.c
==============================================================================
--- trunk/src/pk-application.c (original)
+++ trunk/src/pk-application.c Tue Feb 19 00:17:49 2008
@@ -26,6 +26,7 @@
#include <glade/glade.h>
#include <gtk/gtk.h>
+#include <gconf/gconf-client.h>
#include <libsexy/sexy-icon-entry.h>
#include <math.h>
#include <string.h>
@@ -60,6 +61,7 @@
struct PkApplicationPrivate
{
GladeXML *glade_xml;
+ GConfClient *gconf_client;
GtkListStore *packages_store;
GtkListStore *groups_store;
PkClient *client_search;
@@ -1280,6 +1282,34 @@
}
/**
+ * pk_application_create_completion_model:
+ *
+ * Creates a tree model containing the completions
+ **/
+GtkTreeModel *
+pk_application_create_completion_model (void)
+{
+ GtkListStore *store;
+ GtkTreeIter iter;
+
+ store = gtk_list_store_new (1, G_TYPE_STRING);
+
+ /* append one word */
+ gtk_list_store_append (store, &iter);
+ gtk_list_store_set (store, &iter, 0, "gnome-power-manager", -1);
+
+ /* append another word */
+ gtk_list_store_append (store, &iter);
+ gtk_list_store_set (store, &iter, 0, "gnome-screensaver", -1);
+
+ /* and another word */
+ gtk_list_store_append (store, &iter);
+ gtk_list_store_set (store, &iter, 0, "hal", -1);
+
+ return GTK_TREE_MODEL (store);
+}
+
+/**
* pk_application_init:
**/
static void
@@ -1298,6 +1328,7 @@
application->priv->package = NULL;
application->priv->url = NULL;
application->priv->search_in_progress = FALSE;
+ application->priv->gconf_client = gconf_client_get_default ();
application->priv->search_type = PK_SEARCH_UNKNOWN;
application->priv->current_filter = pk_enum_list_new ();
@@ -1442,12 +1473,38 @@
gtk_notebook_remove_page (GTK_NOTEBOOK (widget), 1);
}
+ /* simple find button */
widget = glade_xml_get_widget (application->priv->glade_xml, "button_find");
g_signal_connect (widget, "clicked",
G_CALLBACK (pk_application_find_cb), application);
gtk_widget_set_tooltip_text (widget, _("Find packages"));
+ /* the fancy text entry widget */
+ GtkEntryCompletion *completion;
+ GtkTreeModel *completion_model;
+ gboolean autocomplete;
widget = glade_xml_get_widget (application->priv->glade_xml, "entry_text");
+
+ /* autocompletion can be turned off as it's slow */
+ autocomplete = gconf_client_get_bool (application->priv->gconf_client, PK_CONF_AUTOCOMPLETE, NULL);
+ if (autocomplete == TRUE) {
+ /* create the completion object */
+ completion = gtk_entry_completion_new ();
+
+ /* assign the completion to the entry */
+ gtk_entry_set_completion (GTK_ENTRY (widget), completion);
+ g_object_unref (completion);
+
+ /* create a tree model and use it as the completion model */
+ completion_model = pk_application_create_completion_model ();
+ gtk_entry_completion_set_model (completion, completion_model);
+ g_object_unref (completion_model);
+
+ /* use model column 0 as the text column */
+ gtk_entry_completion_set_text_column (completion, 0);
+ gtk_entry_completion_set_inline_completion (completion, TRUE);
+ }
+
/* set focus on entry text */
gtk_widget_grab_focus (widget);
gtk_widget_show (widget);
@@ -1622,6 +1679,7 @@
g_object_unref (application->priv->current_filter);
g_object_unref (application->priv->statusbar);
g_object_unref (application->priv->extra);
+ g_object_unref (application->priv->gconf_client);
g_free (application->priv->url);
g_free (application->priv->package);
Modified: trunk/src/pk-common-gui.c
==============================================================================
--- trunk/src/pk-common-gui.c (original)
+++ trunk/src/pk-common-gui.c Tue Feb 19 00:17:49 2008
@@ -95,6 +95,7 @@
{PK_ROLE_ENUM_INSTALL_PACKAGE, "pk-package-add"},
{PK_ROLE_ENUM_INSTALL_FILE, "pk-package-add"},
{PK_ROLE_ENUM_UPDATE_PACKAGE, "pk-package-update"},
+ {PK_ROLE_ENUM_SERVICE_PACK, "pk-package-update"},
{PK_ROLE_ENUM_UPDATE_SYSTEM, "system-software-update"},
{PK_ROLE_ENUM_GET_REPO_LIST, "emblem-system"},
{PK_ROLE_ENUM_REPO_ENABLE, "emblem-system"},
@@ -958,6 +959,9 @@
case PK_ROLE_ENUM_INSTALL_FILE:
text = _("Installed local file");
break;
+ case PK_ROLE_ENUM_SERVICE_PACK:
+ text = _("Updating from service pack");
+ break;
case PK_ROLE_ENUM_REFRESH_CACHE:
text = _("Refreshed package cache");
break;
Modified: trunk/src/pk-common-gui.h
==============================================================================
--- trunk/src/pk-common-gui.h (original)
+++ trunk/src/pk-common-gui.h Tue Feb 19 00:17:49 2008
@@ -37,7 +37,7 @@
#define PK_CONF_NOTIFY_STARTED "/apps/gnome-packagekit/notify_started"
#define PK_CONF_NOTIFY_BATTERY_UPDATE "/apps/gnome-packagekit/notify_battery_update"
#define PK_CONF_NOTIFY_RESTART "/apps/gnome-packagekit/notify_restart"
-#define PK_CONF_FIND_AS_TYPE "/apps/gnome-packagekit/find_as_you_type"
+#define PK_CONF_AUTOCOMPLETE "/apps/gnome-packagekit/autocomplete"
#define PK_CONF_SESSION_STARTUP_TIMEOUT "/apps/gnome-packagekit/session_startup_timeout"
#define PK_CONF_FREQUENCY_GET_UPDATES "/apps/gnome-packagekit/frequency_get_updates"
#define PK_CONF_FREQUENCY_REFRESH_CACHE "/apps/gnome-packagekit/frequency_refresh_cache"
Modified: trunk/src/pk-update-viewer.c
==============================================================================
--- trunk/src/pk-update-viewer.c (original)
+++ trunk/src/pk-update-viewer.c Tue Feb 19 00:17:49 2008
@@ -250,6 +250,7 @@
if (role == PK_ROLE_ENUM_UPDATE_SYSTEM) {
text = pk_package_id_pretty (package_id, summary);
icon_name = pk_info_enum_to_icon_name (info);
+ gtk_list_store_clear (list_store_history);
gtk_list_store_append (list_store_history, &iter);
gtk_list_store_set (list_store_history, &iter,
HISTORY_COLUMN_TEXT, text,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]