[maemo-commits] [maemo-commits] r12768 - in projects/haf/tags/hildon-plugin-settings: . 0.0.5-2 0.0.5-2/debian 0.0.5-2/src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Wed Jul 18 15:22:02 EEST 2007
Author: moimart
Date: 2007-07-18 15:21:59 +0300 (Wed, 18 Jul 2007)
New Revision: 12768

Added:
   projects/haf/tags/hildon-plugin-settings/0.0.5-2/
   projects/haf/tags/hildon-plugin-settings/0.0.5-2/ChangeLog
   projects/haf/tags/hildon-plugin-settings/0.0.5-2/debian/changelog
   projects/haf/tags/hildon-plugin-settings/0.0.5-2/src/hildon-plugin-settings.c
Removed:
   projects/haf/tags/hildon-plugin-settings/0.0.5-2/ChangeLog
   projects/haf/tags/hildon-plugin-settings/0.0.5-2/debian/changelog
   projects/haf/tags/hildon-plugin-settings/0.0.5-2/src/hildon-plugin-settings.c
Log:

 	* new tag for hildon-plugin-settings



Copied: projects/haf/tags/hildon-plugin-settings/0.0.5-2 (from rev 12766, projects/haf/trunk/hildon-plugins-settings)

Deleted: projects/haf/tags/hildon-plugin-settings/0.0.5-2/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-plugins-settings/ChangeLog	2007-07-17 13:36:47 UTC (rev 12766)
+++ projects/haf/tags/hildon-plugin-settings/0.0.5-2/ChangeLog	2007-07-18 12:21:59 UTC (rev 12768)
@@ -1,258 +0,0 @@
-2007-07-17  Moises Martinez  <moises.martinez at nokia.com>
-
-	* configure.ac: 0.0.5
-
-2007-07-17  Moises Martinez  <moises.martinez at nokia.com>
-
-	* configure.ac:
-	* debian/control:
-	* src/Makefile.am:
-	- Added hildon-help
-	* src/hildon-plugin-settings.c: (_cell_mandatory_data_func),
-	(execute):
-	- Don't show checkboxes in tasknavigator if there are only 3 plugins.
-	Fixes: NB#63295.
-	- Include help dialog support. Fixes: NB62878
-
-2007-07-16  Moises Martinez  <moises.martinez at nokia.com>
-
-	* src/hildon-plugin-cell-renderer-button.c:
-	(hildon_plugin_cell_renderer_button_activate):
-	- Set transient for parent dialog window. Fixes: NB#63366
-	* src/hildon-plugin-settings-dialog.[ch]:
-	(hildon_plugin_settings_dialog_new):
-	- Set transient for parent.
-	- Set again as MODAL.
-	* src/hildon-plugin-settings.c: (execute):
-	- Parent is user data. Fixes: NB#62322
-
-2007-07-12  Moises Martinez  <moises.martinez at nokia.com>
-
-	* src/Makefile.am: Fixed marshalers creation.
-
-2007-07-12  Moises Martinez  <moises.martinez at nokia.com>
-	
-	* debian/control:
-	* configure.ac:
-	- Added dbus-1-glib
-	* src/Makefile.am:
-	- added marshalers creation
-	* src/hd-marshalers.list:
-	- new file with marshalers needed
-	* src/hildon-plugin-config-parser.c:
-	(hildon_plugin_config_parser_desktop_file):
-	- FLAG set by default to FALSE
-	* src/hildon-plugin-settings-dialog.[ch]:
-	(hildon_plugin_settings_dialog_get_model_by_name):
-	- new method
-	* src/hildon-plugin-settings.c: (_sb_visibility_filter),
-	(_sb_cell_condition_data_func), (_sb_update_status),
-	(_sb_update_flag), (execute):
-	- Implemented visibility and dimmed of different statusbar plugins
-	conditional, temporal and permanent.
-
-2007-07-06  Johan Bilien  <johan.bilien at nokia.com>
-
-	* src/hildon-plugin-module-settings.c:
-	- pass the GModule to the callback so one can use GTypeModule
-	* data/hildon-plugins-settings.desktop.in:
-	- added X-Text-Domain key. Fixes: NB#62315
-
-2007-07-05  Moises Martinez  <moises.martinez at nokia.com>
-
-	* configure.ac: 0.0.3
-	* debian/changelog: updated.
-
-2007-07-04  Moises Martinez  <moises.martinez at nokia.com>
-
-	* src/hildon-plugin-settings-dialog.c:
-	- Fixed a problem when there is a limit for items to be selected. 
-	Fixes: NB#62312.
-	- Dimmed proper arrow when at the beginning or the end of the list.
-	Fixes: NB#62363
-	- Select the first item in the list when changing from one tab to
-	another. Fixes: NB#62360
-	- Dialog is no longer system modal. Fixes: NB#62322	
-
-2007-06-27  Moises Martinez  <moises.martinez at nokia.com>
-
-	* data/hildon-plugins-settings.desktop.in:
-	- Changed name to new one.
-	* src/hildon-plugin-cell-renderer-button.c:
-	- Fixed style of button.
-	* src/hildon-plugin-settings-dialog.c:
-	(hildon_plugin_settings_dialog_change_drag_icon_cb), added
-	(hildon_plugin_settings_dialog_row_inserted_cb), added 
-	(hildon_plugin_settings_dialog_constructor):
-	- Fixed buttons images.
-	* src/hildon-plugin-settings.c: (_tn_visibility_filter),
-	- Fixed strange cases when tw is NULL (WTF??)
-	(_cell_mandatory_data_func): used also for tasknavigator.
-	* configure.ac: 0.0.2
-	* debian/changelog updated.
-
-2007-06-26  Moises Martinez  <moises.martinez at nokia.com>
-
-	* src/hildon-plugin-settings-dialog.[ch]:
-	- Added method to set limit of items for a container.
-	- Implemented limitation of selected items.
-	* src/hildon-plugin-settings.c:
-	- Set limit to 3 items for Tasknavigator.
-
-2007-06-18  Moises Martinez  <moises.martinez at nokia.com>
-
-	* src/hildon-plugin-config-parser.[ch]:
-	- Added definitions for extra columns and used them.
-	* src/hildon-plugin-settings-dialog.[ch]:
-	- Using new definitions
-	* src/hildon-plugin-settings.c:
-	- Added visibility filter.
-	* COPYING: Added license. Fixes: NB#60975
-
-2007-06-07  Moises Martinez  <moises.martinez at nokia.com>
-
-	* debian/control: Fixed some deps
-	* src/hildon-plugin-settings-dialog.[ch]:
-	- Added method to set GtkTreeCellDataFunc to specific containers.
-	- Get list of containers' name.
-
-2007-06-06  Moises Martinez  <moises.martinez at nokia.com>
-
-	* debian/*: updated.
-	* configure.ac: 
-	* src/Makefile.am:
-	- Removed libhildonmenu	
-
-2007-06-06  Moises Martinez  <moises.martinez at nokia.com>
-
-	* src/hildon-plugin-settings-dialog.c:
-	- Added support for localization.
-	* configure.ac: 
-	- Added localization
-	- Updated *.in files
-	* data/hildon-plugin-settings-bin.desktop.in: Added for standalone
-	application.
-	* debian/*: Added debian packaging.
-
-2007-06-06  Moises Martinez  <moises.martinez at nokia.com>
-
-	* src/hildon-plugin-settings-dialog.c: Fixed toggling checkboxes when
-	using a TreeModelFilter.
-	* src/hildon-plugin-settings.c: Added visibility_filter for
-	Tasknavigator.
-
-2007-06-06  Moises Martinez  <moises.martinez at nokia.com>
-
-	* configure.ac: Added hildon-1 for standalone application.
-	* src/hildon-plugin-settings-dialog.[ch]:
-	- Make Ok & Cancel buttons plubic.
-	* src/Makefile.am: Added hildon-1 for standalone application.
-	* src/hildon-plugin-settings-main.c:
-	- Use a HildonWindow a reparent GtkDialog content to it.
-
-2007-06-06  Moises Martinez  <moises.martinez at nokia.com>
-
-	* src/hildon-plugin-cell-renderer-button.c:
-	- Fixed some special cases.
-	* src/hildon-plugin-settings-dialog.[ch]: Added property to be shown
-	as a normal GtkWindow.
-	* src/Makefile.am: Added src/hildon-plugin-module-settings-main.c to
-	be built as a standalone binary.
-	* src/hildon-plugin-module-settings.c:
-	* src/hildon-plugin-module-settings-main.c:
-	- Added standalone binary
-
-2007-06-05  Moises Martinez  <moises.martinez at nokia.com>
-
-	* src/hildon-plugin-cell-renderer-button.c:
-	- Fixed style when pressed.
-
-2007-06-05  Moises Martinez  <moises.martinez at nokia.com>
-
-	* configure.ac:
-	- Added libhildondesktop headers.
-	* src/hildon-plugin-module-settings.[ch]:
-	- Wrapper around possible settings for a HildonDesktopItem
-	* src/hildon-plugin-cell-renderer-button.[ch]:
-	- Implemented CellRendererButton
-	* src/hildon-plugin-settings-dialog.c:
-	- Added new CellRendererButton.
-	- Added key "X-Settings" to parser.
-	* src/hildon-plugin-config-parser.c:
-	- It knows what to do when a HildonPluginModuleSettings is set.
-	* src/Makefile.am: Added new stuff
-
-2007-06-04  Moises Martinez  <moises.martinez at nokia.com>
-
-	* src/hildon-plugin-settings-dialog.[ch]:
-	- Added support for adding GtkTreeModelFilters
-	* src/hildon-plugin-config-parser.c:
-	- Implemented and fixed order of plugins.
-	* src/hildon-plugin-settings.c:
-	- Test with an external TreeModelFilter
-
-2007-06-04  Moises Martinez  <moises.martinez at nokia.com>
-
-	* src/hildon-plugin-settings.c: Exit if Cancel.
-
-2007-06-04  Moises Martinez  <moises.martinez at nokia.com>
-
-	* configure.ac: Look for hildon-desktop headers.
-	* src/hildon-plugin-settings-dialog.[ch]:
-	- First implementation of dialog.
-	* src/hildon-plugin-config-parser.[ch]:
-	- Fixed several bugs.
-	* src/hildon-plugin-settings.c: 
-	- Use the new dialog, not a unit test anymore.
-	* src/Makefile.am: 
-	- Added new dialog to build batch.
-
-2007-06-04  Moises Martinez  <moises.martinez at nokia.com>
-
-	* src/hildon-plugin-config-parser.[ch]:
-	- Implemented _save method.
-	- Implemented _compare_with file methos to know what plugins are
-	loaded.
-	* src/hildon-plugin-settings.c:
-	- Still unit test.
-
-2007-06-01  Moises Martinez  <moises.martinez at nokia.com>
-
-	* configure.ac: Updated.
-	* src/hildon-plugin-config-parser.c:
-	- Several bugfixes.
-	- Added position field.
-	* src/hildon-plugin-settings.c:
-	- It is still a unit test.
-	* src/Makefile.am: Updated
-	* data/hildon-plugins-settings.desktop.in: Filled
-	* data/Makefile.am: Added
-
-2007-06-01  Moises Martinez  <moises.martinez at nokia.com>
-
-	* +++ src/hildon-plugin-config-parser.[ch]:
-	- Fixed several bugs to get it built and working.
-	* src/hildon-plugin-settings.c:
-	- Testing the plugin. Not real implementation.
-
-2007-06-01  Moises Martinez  <moises.martinez at nokia.com>
-
-	* src/hildon-plugin-config-parser.[ch]:
-	- Implemented reading of desktop files to model.
-	* src/hildon-plugin-config-settings.c:
-	- Initial import of control panel interface.
-	* src/hildon-plugin-config-settings-dialog.[ch]:
-	- Initial import of GtkDialog child class.
-
-2007-05-31  Moises Martinez  <moises.martinez at nokia.com>
-
-	* src/hildon-plugin-config-parser.[ch]:
-	- Added first implementation.
-	* src/Makefile.am: updated.
-
-2007-05-31  Moises Martinez  <moises.martinez at nokia.com>
-
-	* ./*:
-	* src/*:
-	- Added initial skeleton.
-

Copied: projects/haf/tags/hildon-plugin-settings/0.0.5-2/ChangeLog (from rev 12767, projects/haf/trunk/hildon-plugins-settings/ChangeLog)

Deleted: projects/haf/tags/hildon-plugin-settings/0.0.5-2/debian/changelog
===================================================================
--- projects/haf/trunk/hildon-plugins-settings/debian/changelog	2007-07-17 13:36:47 UTC (rev 12766)
+++ projects/haf/tags/hildon-plugin-settings/0.0.5-2/debian/changelog	2007-07-18 12:21:59 UTC (rev 12768)
@@ -1,105 +0,0 @@
-hildon-plugins-settings (0.0.5-1) unstable; urgency=low
-
-  * configure.ac:
-  * debian/control:
-  * src/Makefile.am:
-  - Added hildon-help
-  * src/hildon-plugin-settings.c: (_cell_mandatory_data_func),
-  (execute):
-  - Don't show checkboxes in tasknavigator if there are only 3 plugins.
-  Fixes: NB#63295.
-  - Include help dialog support. Fixes: NB#62878
-
-  * src/hildon-plugin-cell-renderer-button.c:
-  (hildon_plugin_cell_renderer_button_activate):
-  - Set transient for parent dialog window. Fixes: NB#63366
-  * src/hildon-plugin-settings-dialog.[ch]:
-  (hildon_plugin_settings_dialog_new):
-  - Set transient for parent.
-  - Set again as MODAL.
-  * src/hildon-plugin-settings.c: (execute):
-  - Parent is user data. Fixes: NB#62322
-
- -- Moises Martinez <moises.martinez at nokia.com>  Tue, 17 Jul 2007 16:29:26 +0300
-
-hildon-plugins-settings (0.0.4-2) unstable; urgency=low
-
-  * src/Makefile.am: Fixed marshalers creation. 
-
- -- Moises Martinez <moises.martinez at nokia.com>  Thu, 12 Jul 2007 17:34:25 +0300
-
-hildon-plugins-settings (0.0.4-1) unstable; urgency=low
-
-  * debian/control:
-  * configure.ac:
-  - Added dbus-1-glib
-  * src/Makefile.am:
-  - added marshalers creation
-  * src/hd-marshalers.list:
-  - new file with marshalers needed
-  * src/hildon-plugin-config-parser.c:
-  (hildon_plugin_config_parser_desktop_file):
-  - FLAG set by default to FALSE
-  * src/hildon-plugin-settings-dialog.[ch]:
-  (hildon_plugin_settings_dialog_get_model_by_name):
-  - new method
-  * src/hildon-plugin-settings.c: (_sb_visibility_filter),
-  (_sb_cell_condition_data_func), (_sb_update_status),
-  (_sb_update_flag), (execute):
-  - Implemented visibility and dimmed of different statusbar plugins
-  conditional, temporal and permanent.
-
-  * src/hildon-plugin-module-settings.c:
-  - pass the GModule to the callback so one can use GTypeModule
-  * data/hildon-plugins-settings.desktop.in:
-  - added X-Text-Domain key. Fixes: NB#62315
-
- -- Moises Martinez <moises.martinez at nokia.com>  Thu, 12 Jul 2007 14:57:59 +0300
-
-hildon-plugins-settings (0.0.3-1) unstable; urgency=low
-
-  * src/hildon-plugin-settings-dialog.c:
-  - Fixed a problem when there is a limit for items to be selected.
-  Fixes: NB#62312.
-  - Dimmed proper arrow when at the beginning or the end of the list.
-  Fixes: NB#62363
-  - Select the first item in the list when changing from one tab to
-  another. Fixes: NB#62360
-  - Dialog is no longer system modal. Fixes: NB#62322
-
- -- Moises Martinez <moises.martinez at nokia.com>  Thu,  5 Jul 2007 14:52:37 +0300
-
-hildon-plugins-settings (0.0.2-1) unstable; urgency=low
-
-  * data/hildon-plugins-settings.desktop.in:
-  - Changed name to new one.
-  * src/hildon-plugin-cell-renderer-button.c:
-  - Fixed style of button.
-  * src/hildon-plugin-settings-dialog.c:
-  (hildon_plugin_settings_dialog_change_drag_icon_cb), added
-  (hildon_plugin_settings_dialog_row_inserted_cb), added
-  (hildon_plugin_settings_dialog_constructor):
-  - Fixed buttons images.
-  * src/hildon-plugin-settings.c: (_tn_visibility_filter),
-  - Fixed strange cases when tw is NULL (WTF??)
-  (_cell_mandatory_data_func): used also for tasknavigator.
-  * src/hildon-plugin-settings-dialog.[ch]:
-  - Added method to set limit of items for a container.
-  - Implemented limitation of selected items.
-  * src/hildon-plugin-settings.c:
-  - Set limit to 3 items for Tasknavigator.
-
- -- Moises Martinez <moises.martinez at nokia.com>  Wed, 27 Jun 2007 15:31:13 +0300
-
-hildon-plugins-settings (0.0.1-2) unstable; urgency=low
-
-  * Fixed debian/control dependencies.
-
- -- Moises Martinez <moises.martinez at nokia.com>  Thu,  7 Jun 2007 15:17:04 +0300
-
-hildon-plugins-settings (0.0.1-1) unstable; urgency=low
-
-  * Initial Release. Fixes: NB#59730
-
- -- Moises Martinez <moises.martinez at nokia.com>  Wed,  6 Jun 2007 19:22:40 +0300
-

Copied: projects/haf/tags/hildon-plugin-settings/0.0.5-2/debian/changelog (from rev 12767, projects/haf/trunk/hildon-plugins-settings/debian/changelog)

Deleted: projects/haf/tags/hildon-plugin-settings/0.0.5-2/src/hildon-plugin-settings.c
===================================================================
--- projects/haf/trunk/hildon-plugins-settings/src/hildon-plugin-settings.c	2007-07-17 13:36:47 UTC (rev 12766)
+++ projects/haf/tags/hildon-plugin-settings/0.0.5-2/src/hildon-plugin-settings.c	2007-07-18 12:21:59 UTC (rev 12768)
@@ -1,349 +0,0 @@
-/*
- * This file is part of maemo-af-desktop
- *
- * Copyright (C) 2007 Nokia Corporation.
- *
- * Author:  Moises Martinez <moises.martinez at nokia.com>
- * Contact: Karoliina Salminen <karoliina.t.salminen at nokia.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * as published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA
- *
- */
-
-#include <hildon-cp-plugin/hildon-cp-plugin-interface.h>
-#include <gtk/gtk.h>
-
-#include <dbus/dbus-glib.h>
-#include <dbus/dbus-glib-bindings.h>
-
-#include <hildon/hildon-help.h>
-
-#include "hd-marshalers.h"
-
-#include "hildon-plugin-settings-dialog.h"
-
-#define SB_STATUS_NAME "org.hildon.Statusbar"
-#define SB_STATUS_PATH "/org/hildon/Statusbar"
-#define SB_STATUS_INTERFACE "org.hildon.Statusbar"
-#define SB_STATUS_METHOD "RefreshItemsStatus"
-
-#define SB_CATEGORY_TEMPORAL "temporal"
-#define SB_CATEGORY_CONDITIONAL "conditional"
-
-#include <libintl.h>
-#define _(a) dgettext(PACKAGE, a)
-
-#define TN_MAX_ITEMS 3
-
-/* HARDCODE_PARTY */
-/* Plugins to not be shown */
-#define HP_APPLICATION_SWITCHER "/usr/share/applications/hildon-navigator/app-switcher.desktop"
-#define HP_SWITCHER_MENU "/usr/share/applications/hildon-navigator/switcher-menu.desktop"
-
-#define CPA_TN_HELP_TOPIC  "utilities_controlpanelapplettasknavigator_tana"
-
-static gboolean
-_tn_visibility_filter (GtkTreeModel *model,
-                       GtkTreeIter *iter,
-                       gpointer data)
-{
-  if (!model || !iter)
-    return TRUE;	  
-	
-  gchar *name = NULL;
-
-  gtk_tree_model_get (model,
-                      iter,
-                      0,
-                      &name,
-                      -1);
-
-  if (!name)
-    return TRUE;	  
-
-  if (g_str_equal (name,HP_APPLICATION_SWITCHER) ||
-      g_str_equal (name,HP_SWITCHER_MENU))
-    return FALSE;	  
-
-  return TRUE;
-}
-
-static gboolean
-_sb_visibility_filter (GtkTreeModel *model,
-                       GtkTreeIter *iter,
-                       gpointer data)
-{
-  if (!model || !iter)
-    return TRUE;
-
-  gboolean flag = TRUE;
-  gchar *category = NULL;
-
-  gtk_tree_model_get (model,iter,
-		      HP_COL_FLAG, &flag,
-		      HP_COL_CATEGORY, &category,
-		      -1);
-
-  if (!category)
-    return TRUE;
-  
-  if (g_str_equal (category, SB_CATEGORY_CONDITIONAL) && !flag)		  
-    return FALSE;
-
-  return TRUE;  
-}
-
-static void 
-_cell_mandatory_data_func (GtkTreeViewColumn *tc,
-                           GtkCellRenderer *cell,
-                           GtkTreeModel *tm,
-                           GtkTreeIter *iter,
-                           gpointer data)
-{
-  gboolean mandatory;
-
-  gtk_tree_model_get (tm, iter,
-		      HP_COL_MANDATORY, &mandatory,
-		      -1);
-  
-  g_object_set (G_OBJECT (cell), 
-		"sensitive", !mandatory,
-		"activatable", !mandatory,
-		NULL);
-
-  if (gtk_tree_model_iter_n_children (tm, NULL) <= TN_MAX_ITEMS)
-    g_object_set (G_OBJECT (cell), "visible", FALSE, NULL);
-}
-
-static void 
-_sb_cell_condition_data_func (GtkTreeViewColumn *tc,
-                    	      GtkCellRenderer *cell,
-                    	      GtkTreeModel *tm,
-                    	      GtkTreeIter *iter,
-                    	      gpointer data)
-{
-  gchar *category = NULL;
-  gboolean status = TRUE, cb = TRUE;
-	
-  gtk_tree_model_get (tm, iter,
-		      HP_COL_CATEGORY, &category,
-		      HP_COL_FLAG, &status,
-		      HP_COL_CHECKBOX, &cb,
-		      -1);
-
-  if (!category)
-    return;
-
-  if (g_str_equal (category, SB_CATEGORY_TEMPORAL) || 
-      g_str_equal (category, SB_CATEGORY_CONDITIONAL))
-    g_object_set (G_OBJECT (cell), "sensitive", status, NULL);
-  else
-  if (cb)	  
-    g_object_set (G_OBJECT (cell), "sensitive", TRUE, NULL);	  
-}
-
-static void 
-_sb_update_status (DBusGProxy *proxy,
-		   gchar *name,
-		   gboolean status,
-		   GtkTreeModel *tm)
-{
-  GtkTreeIter iter;
-  
-  gtk_tree_model_get_iter_first (tm, &iter);
-
-  do
-  {
-    gboolean old_status = TRUE;
-    gchar *iter_name = NULL, *iter_category = NULL;
-
-    gtk_tree_model_get (tm, &iter,
-		        HP_COL_DESKTOP_FILE, &iter_name,
-			HP_COL_FLAG, &old_status,
-			HP_COL_CATEGORY, &iter_category,
-			-1);
-
-    if (!iter_name && !iter_category)
-      continue;	    
-
-    if (g_str_equal (name, iter_name))
-    {	    
-      if (old_status != status)
-        gtk_list_store_set (GTK_LIST_STORE (tm), &iter,
-	  		    HP_COL_FLAG, status,
-		 	    -1);		   
-    }		        
-
-    g_free (iter_name);
-    g_free (iter_category);    
-  }
-  while (gtk_tree_model_iter_next (tm, &iter));  
-}
-
-static void 
-_sb_update_flag (GtkTreeModel *tm)
-{
-  GtkTreeIter iter;
-
-  gtk_tree_model_get_iter_first (tm, &iter);
-
-  do
-  {
-    gchar *iter_category = NULL;
-
-    gtk_tree_model_get (tm, &iter,
-                        HP_COL_CATEGORY, &iter_category,
-                        -1);
-
-    if (!iter_category)
-      continue;
-    
-    if (g_str_equal (SB_CATEGORY_TEMPORAL, iter_category) ||
-        g_str_equal (SB_CATEGORY_CONDITIONAL, iter_category))
-    {
-      gtk_list_store_set (GTK_LIST_STORE (tm), &iter,
-                          HP_COL_FLAG, FALSE,
-                          -1);
-    }
-
-    g_free (iter_category);
-  }
-  while (gtk_tree_model_iter_next (tm, &iter));
-}
-	
-
-osso_return_t 
-execute (osso_context_t *osso,
-	 gpointer user_data,
-	 gboolean user_activated)
-{
-  gint ret;
-  DBusGConnection *conn = NULL;
-  GError *error = NULL;
-  GtkTreeModel *sbtm = NULL;
-
-  GtkWidget *dialog = hildon_plugin_settings_dialog_new (GTK_WINDOW (user_data));
-
-  hildon_help_dialog_help_enable (GTK_DIALOG (dialog), CPA_TN_HELP_TOPIC, osso);
-
-  hildon_plugin_settings_dialog_set_visibility_filter
-    (HILDON_PLUGIN_SETTINGS_DIALOG (dialog),
-     "Tasknavigator",
-    _tn_visibility_filter,
-    NULL,
-    NULL);    
-
-  hildon_plugin_settings_dialog_set_visibility_filter
-    (HILDON_PLUGIN_SETTINGS_DIALOG (dialog),
-     "Statusbar",
-    _sb_visibility_filter,
-    NULL,
-    NULL);    
-
-  hildon_plugin_settings_dialog_set_cell_data_func
-    (HILDON_PLUGIN_SETTINGS_DIALOG (dialog),
-     HPSD_COLUMN_TOGGLE,
-     "Statusbar",
-    _cell_mandatory_data_func,
-    NULL,
-    NULL);    
-
-  hildon_plugin_settings_dialog_set_cell_data_func
-    (HILDON_PLUGIN_SETTINGS_DIALOG (dialog),
-     HPSD_COLUMN_PB,
-     "Statusbar",
-    _sb_cell_condition_data_func,
-    NULL,
-    NULL);    
-
-  hildon_plugin_settings_dialog_set_cell_data_func
-    (HILDON_PLUGIN_SETTINGS_DIALOG (dialog),
-     HPSD_COLUMN_TOGGLE,
-     "Tasknavigator",
-    _cell_mandatory_data_func,
-    NULL,
-    NULL);    
-
-  hildon_plugin_settings_dialog_set_choosing_limit 
-    (HILDON_PLUGIN_SETTINGS_DIALOG (dialog),
-     "Tasknavigator",
-     TN_MAX_ITEMS);
-
-  sbtm = hildon_plugin_settings_dialog_get_model_by_name
-          (HILDON_PLUGIN_SETTINGS_DIALOG (dialog),
-           "Statusbar",
-           FALSE);
-
-  _sb_update_flag (sbtm);
-
-  conn = dbus_g_bus_get (DBUS_BUS_SESSION, &error);
-
-  if (!error)
-  {
-    DBusGProxy *proxy = dbus_g_proxy_new_for_name (conn,
-		    				   SB_STATUS_NAME,
-						   SB_STATUS_PATH,
-						   SB_STATUS_INTERFACE);
-
-    dbus_g_object_register_marshaller (g_cclosure_user_marshal_VOID__STRING_BOOLEAN,
-                                        G_TYPE_NONE,
-                                        G_TYPE_STRING,
-                                        G_TYPE_BOOLEAN,
-                                        G_TYPE_INVALID);
-
-    dbus_g_proxy_add_signal (proxy,
-		    	     "UpdateStatus",
-			     G_TYPE_STRING,
-			     G_TYPE_BOOLEAN,
-			     G_TYPE_INVALID);
-
-    dbus_g_proxy_connect_signal (proxy,
-				 "UpdateStatus",
-				 G_CALLBACK (_sb_update_status),
-				 sbtm,
-				 NULL);
-
-    dbus_g_proxy_call (proxy,
-		       "RefreshItemsStatus",
-		       &error,
-		       G_TYPE_INVALID);
-    
-    if (error)
-    {
-      g_warning ("Oops: %s", error->message);
-      g_error_free (error);
-    }		    
-  }
-  else
-  {
-    g_warning ("%s: I couldn't connect to the bus: %s",__FILE__,error->message);
-    g_error_free (error);
-  }
-  	  
-
-  gtk_widget_show (dialog);
-
-  ret = gtk_dialog_run (GTK_DIALOG (dialog));
-
-  if (ret == GTK_RESPONSE_OK)
-  {
-  }
-    
-  gtk_widget_destroy (dialog);
-    
-  return OSSO_OK;  
-}
-

Copied: projects/haf/tags/hildon-plugin-settings/0.0.5-2/src/hildon-plugin-settings.c (from rev 12767, projects/haf/trunk/hildon-plugins-settings/src/hildon-plugin-settings.c)


More information about the maemo-commits mailing list