2009-03-06 Alberto Garcia <agarcia@igalia.com>
authorAlberto Garcia <agarcia@igalia.com>
Fri, 6 Mar 2009 15:02:58 +0000 (15:02 +0000)
committerAlberto Garcia <agarcia@igalia.com>
Fri, 6 Mar 2009 15:02:58 +0000 (15:02 +0000)
Patch by Mox Soini (ext-mox.soini@nokia.com)

* tests/TEST-CASES.txt
* tests/check-hildon-banner.c
* tests/check-hildon-note.c
* src/hildon-banner.c
* src/hildon-code-dialog.c
* src/hildon-date-editor.c (real_set_calendar_icon_state)
* src/hildon-time-editor.c
* examples/hildon-lookup-example.c (main):
Replace obsolete icon names with new ones.

* src/hildon-find-toolbar-private.h:
* src/hildon-find-toolbar.c (hildon_find_toolbar_init)
(-hildon_find_toolbar_emit_search):
Remove find button and change icon of close button.

Fixes: NB#104819 (Clean up old icon names from hildon-widgets)

ChangeLog
examples/hildon-lookup-example.c
src/hildon-banner.c
src/hildon-code-dialog.c
src/hildon-date-editor.c
src/hildon-find-toolbar-private.h
src/hildon-find-toolbar.c
src/hildon-time-editor.c
tests/TEST-CASES.txt
tests/check-hildon-banner.c
tests/check-hildon-note.c

index 9403ff0..dd6dd29 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,24 @@
+2009-03-06  Alberto Garcia  <agarcia@igalia.com>
+
+       Patch by Mox Soini (ext-mox.soini@nokia.com)
+
+       * tests/TEST-CASES.txt
+       * tests/check-hildon-banner.c
+       * tests/check-hildon-note.c
+       * src/hildon-banner.c
+       * src/hildon-code-dialog.c
+       * src/hildon-date-editor.c (real_set_calendar_icon_state)
+       * src/hildon-time-editor.c
+       * examples/hildon-lookup-example.c (main):
+       Replace obsolete icon names with new ones.
+
+       * src/hildon-find-toolbar-private.h:
+       * src/hildon-find-toolbar.c (hildon_find_toolbar_init)
+       (-hildon_find_toolbar_emit_search):
+       Remove find button and change icon of close button.
+
+       Fixes: NB#104819 (Clean up old icon names from hildon-widgets)
+
 2009-03-05  Alberto Garcia  <agarcia@igalia.com>
 
        * src/hildon-time-button.c (hildon_time_button_new_step):
index 776f523..2e2a014 100644 (file)
@@ -65,14 +65,10 @@ main                                            (int argc,
     gtk_table_attach (table, create_button_with_icon (GTK_STOCK_CANCEL), 1, 2, 0, 1, 0, 0, 0, 0);
     gtk_table_attach (table, create_button_with_icon (GTK_STOCK_QUIT), 2, 3, 0, 1, 0, 0, 0, 0);
     
-    gtk_table_attach (table, create_button_with_icon (GTK_STOCK_MEDIA_PLAY), 0, 1, 1, 2, 0, 0, 0, 0);
+    gtk_table_attach (table, create_button_with_icon (GTK_STOCK_SAVE), 0, 1, 1, 2, 0, 0, 0, 0);
     gtk_table_attach (table, create_button_with_icon (GTK_STOCK_MEDIA_PAUSE), 1, 2, 1, 2, 0, 0, 0, 0);
-    gtk_table_attach (table, create_button_with_icon ("qgn_note_info"), 2, 3, 1, 2, 0, 0, 0, 0);
+    gtk_table_attach (table, create_button_with_icon (GTK_STOCK_FILE), 2, 3, 1, 2, 0, 0, 0, 0);
     
-    gtk_table_attach (table, create_button_with_icon ("qgn_note_infoprint"), 0, 1, 2, 3, 0, 0, 0, 0);
-    gtk_table_attach (table, create_button_with_icon ("qgn_indi_pball_a"), 1, 2, 2, 3, 0, 0, 0, 0);
-    gtk_table_attach (table, create_button_with_icon ("qgn_note_confirm"), 2, 3, 2, 3, 0, 0, 0, 0);
-
     gtk_table_set_col_spacings (table, 6);
     gtk_table_set_row_spacings (table, 6);
 
index 63a9424..1fe235f 100644 (file)
@@ -89,7 +89,7 @@
 
 /* default icons */
 
-#define                                         HILDON_BANNER_DEFAULT_PROGRESS_ANIMATION "qgn_indi_pball_a"
+#define                                         HILDON_BANNER_DEFAULT_PROGRESS_ANIMATION "indicator_update"
 
 enum 
 {
index 8967328..c886590 100644 (file)
@@ -52,7 +52,7 @@
 
 #define                                         WIDTH  (100-HILDON_MARGIN_DEFAULT)
 
-#define                                         BACKSPACE_ICON "qgn_calculator_backspace"
+#define                                         BACKSPACE_ICON "general_backspace"
 
 #define                                         _(String) \
                                                 dgettext("hildon-libs", String)
index b5eb309..8e02a81 100644 (file)
@@ -346,7 +346,7 @@ real_set_calendar_icon_state                    (HildonDateEditorPrivate *priv,
     g_assert (priv);
 
     gtk_image_set_from_icon_name (GTK_IMAGE (priv->calendar_icon),
-            pressed ? "qgn_widg_datedit_pr" : "qgn_widg_datedit", HILDON_ICON_SIZE_SMALL);
+                                  "widgets_date_editor", HILDON_ICON_SIZE_SMALL);
 
     priv->calendar_icon_pressed = pressed;
 }
index 7c77c9f..0a49845 100644 (file)
@@ -33,7 +33,6 @@ struct                                          _HildonFindToolbarPrivate
 {
   GtkWidget*           label;
   GtkComboBoxEntry*    entry_combo_box;
-  GtkToolItem*         find_button;
   GtkToolItem*         separator;
   GtkToolItem*         close_button;
 
index f0bbd60..92dc01f 100644 (file)
@@ -96,10 +96,6 @@ hildon_find_toolbar_history_append              (HildonFindToolbar *self,
                                                  gpointer data);
 
 static void
-hildon_find_toolbar_emit_search                 (GtkButton *button, 
-                                                 gpointer self);
-
-static void
 hildon_find_toolbar_emit_close                  (GtkButton *button, 
                                                  gpointer self);
 
@@ -464,17 +460,6 @@ hildon_find_toolbar_history_append              (HildonFindToolbar *self,
 }
 
 static void
-hildon_find_toolbar_emit_search                 (GtkButton *button, 
-                                                 gpointer self)
-{
-    gboolean rb;
-
-    /* Clicked search button. Perform search and add search prefix to history */
-    g_signal_emit_by_name(self, "search", NULL);
-    g_signal_emit_by_name(self, "history_append", &rb, NULL);
-}
-
-static void
 hildon_find_toolbar_emit_close                  (GtkButton *button, 
                                                  gpointer self)
 {
@@ -719,32 +704,17 @@ hildon_find_toolbar_init                        (HildonFindToolbar *self)
             "activate",
             G_CALLBACK(hildon_find_toolbar_entry_activate), self);
 
-    /* Find button */
-    priv->find_button = gtk_tool_button_new (
-            gtk_image_new_from_icon_name ("qgn_toolb_browser_gobutton",
-                HILDON_ICON_SIZE_TOOLBAR),
-            "Find");
-
-    g_signal_connect (priv->find_button, "clicked",
-            G_CALLBACK(hildon_find_toolbar_emit_search), self);
-    gtk_widget_show_all( GTK_WIDGET(priv->find_button));
-    gtk_toolbar_insert ( GTK_TOOLBAR(self), priv->find_button, -1);
-    gtk_widget_set_size_request (GTK_WIDGET (priv->find_button), 72, -1);
-    if ( GTK_WIDGET_CAN_FOCUS( GTK_BIN(priv->find_button)->child) )
-        GTK_WIDGET_UNSET_FLAGS(
-                GTK_BIN(priv->find_button)->child, GTK_CAN_FOCUS);
-
     /* Separator */
     priv->separator = gtk_separator_tool_item_new();
+    gtk_widget_set_size_request (GTK_WIDGET (priv->separator), 72, -1);
     gtk_widget_show(GTK_WIDGET(priv->separator));
     gtk_toolbar_insert (GTK_TOOLBAR(self), priv->separator, -1);
 
     /* Close button */
     priv->close_button = gtk_tool_button_new (
-            gtk_image_new_from_icon_name ("qgn_toolb_gene_close",
+            gtk_image_new_from_icon_name ("general_close",
                 HILDON_ICON_SIZE_TOOLBAR),
             "Close");
-    gtk_widget_set_size_request (GTK_WIDGET (priv->close_button), 72, -1);
     g_signal_connect(priv->close_button, "clicked",
             G_CALLBACK(hildon_find_toolbar_emit_close), self);
     gtk_widget_show_all(GTK_WIDGET(priv->close_button));
index ebf191a..ff24dd9 100644 (file)
@@ -90,7 +90,7 @@
 
 #define                                         ICON_PRESSED 4
 
-#define                                         ICON_NAME "qgn_widg_timedit"
+#define                                         ICON_NAME "widgets_time_editor"
 
 #define                                         ICON_SIZE "timepicker-size"
 
index fba1225..9d94b26 100644 (file)
@@ -2511,7 +2511,7 @@ the list of tests (Section 2). Use the following example as a template:
          - Errors detected: none.
 
         1. Create confirmation with icon name note with regular values. 
-            a) Create new confirmation note with description set to a combination of letters, numbers and symbols and icon name "qgn_list_cp_calibration".
+            a) Create new confirmation note with description set to a combination of letters, numbers and symbols and icon name "dummy".
             b) Create new confirmation note with description set to "" and icon name NULL.
            
          2. Create confirmation with icon name note with invalid values.
@@ -2619,7 +2619,7 @@ the list of tests (Section 2). Use the following example as a template:
 
          1. Check creation of new animation banner with regular values.
             a) Create an animation banner with NULL animation name and a text.
-            b) Create an animation banner with qgn_list_mahjong animation name and an empty text.
+            b) Create an animation banner with dummy animation name and an empty text.
 
          2. Check creation of new animation banner with invalid values.
             a) Create an animation banner with NULL text. 
index 5d093ec..25399f3 100644 (file)
@@ -65,7 +65,7 @@ fx_teardown_default_banner ()
  * Purpose: Check creation of new animation banner with regular values
  * Cases considered:
  *    - Create an animation banner with NULL animation name and TEST_STRING text. 
- *    - Create an animation banner with qgn_list_mahjong animation name and "" text.
+ *    - Create an animation banner with dummy animation name and "" text.
  */
 START_TEST (test_show_animation_regular)
 {
@@ -86,9 +86,9 @@ START_TEST (test_show_animation_regular)
   
   gtk_widget_destroy(GTK_WIDGET(hildon_banner));
 
-  /*Test 2: Create an animation banner with animation name set to "qgn_list_mahjong" and text set to "". */
+  /*Test 2: Create an animation banner with animation name set to "dummy" and text set to "". */
   text="";
-  animation_name = "qgn_list_mahjong";
+  animation_name = "dummy";
   hildon_banner = HILDON_BANNER(hildon_banner_show_animation(b_window,animation_name,text));
     
   fail_if(!HILDON_IS_BANNER(hildon_banner),
@@ -124,7 +124,7 @@ START_TEST (test_show_animation_invalid)
     
   /*Test 2: Create an animation banner with NULL window. */
   text="";
-  animation_name = "qgn_list_mahjong";
+  animation_name = "dummy";
   hildon_banner = HILDON_BANNER(hildon_banner_show_animation(NULL,animation_name,text));
     
   fail_if(!HILDON_IS_BANNER(hildon_banner),
index 9c8b100..e0c0d4f 100644 (file)
@@ -285,7 +285,7 @@ END_TEST
 /**
  * Purpose: Check that note dialog is properly created with description regular values. 
  * Cases considered:
- *    - Create new confirmation note with description set to TEST_STRING and icon name "qgn_list_cp_calibration".
+ *    - Create new confirmation note with description set to TEST_STRING and icon name "control_calibration_target".
  *    - Create new confirmation note with description set to "" and icon name NULL.
  *
  */
@@ -306,7 +306,7 @@ START_TEST (test_new_confirmation_with_icon_name_regular)
 
   /* Test 1: create new confirmation note with description set to TEST_STRING */
   description = TEST_STRING;
-  icon_name="qgn_list_cp_calibration";
+  icon_name="control_calibration_target";
   note = HILDON_NOTE(hildon_note_new_confirmation_with_icon_name(n_window,description,icon_name));
   fail_if(!HILDON_IS_NOTE(note),
           "hildon-note: Creation failed with hildon_note_new_confirmation_with_icon_name");
@@ -412,7 +412,7 @@ START_TEST (test_new_confirmation_with_icon_name_invalid)
   invalid_note=NULL;
 
   /* Test 2: create new confirmation note with description set to "NULL" */
-  invalid_note = HILDON_NOTE(hildon_note_new_confirmation_with_icon_name(n_window,NULL,"qgn_list_cp_calibration"));
+  invalid_note = HILDON_NOTE(hildon_note_new_confirmation_with_icon_name(n_window,NULL,"control_calibration_target"));
   fail_if(HILDON_IS_NOTE(invalid_note),
           "hildon-note: Creation succeeded with hildon_note_new_confirmation_with_icon_name with message == NULL");