]> Pileus Git - ~andy/gtk/commitdiff
remove unused variable.
authorMichael Natterer <mitch@imendio.com>
Wed, 9 Jan 2008 17:02:50 +0000 (17:02 +0000)
committerMichael Natterer <mitch@src.gnome.org>
Wed, 9 Jan 2008 17:02:50 +0000 (17:02 +0000)
2008-01-09  Michael Natterer  <mitch@imendio.com>

* gtk/gtkcolorsel.c (make_label_spinbutton): remove unused
variable.

* gtk/gtkcombobox.c (gtk_combo_box_detacher)
* gtk/gtkicontheme.c (theme_list_contexts)
(gtk_icon_theme_lookup_icon)
* gtk/gtkimcontextsimple.c (beep_window)
* gtk/gtklinkbutton.c (set_link_color)
* gtk/gtkuimanager.c (child_hierarchy_changed_cb): add casts to
fix warnings.

* gtk/gtkpathbar.c (_gtk_path_bar_set_file_system): remove unused
variable and add const to another to fix a warning.

svn path=/trunk/; revision=19330

ChangeLog
gtk/gtkcolorsel.c
gtk/gtkcombobox.c
gtk/gtkicontheme.c
gtk/gtkimcontextsimple.c
gtk/gtklinkbutton.c
gtk/gtkpathbar.c
gtk/gtkuimanager.c

index 19c88b7429bb762c034cd5955ad44a21b23ea977..5ae3f3cd781768b212412c9e40414de4bcb1fe03 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2008-01-09  Michael Natterer  <mitch@imendio.com>
+
+       * gtk/gtkcolorsel.c (make_label_spinbutton): remove unused
+       variable.
+
+       * gtk/gtkcombobox.c (gtk_combo_box_detacher)
+       * gtk/gtkicontheme.c (theme_list_contexts)
+       (gtk_icon_theme_lookup_icon)
+       * gtk/gtkimcontextsimple.c (beep_window)
+       * gtk/gtklinkbutton.c (set_link_color)
+       * gtk/gtkuimanager.c (child_hierarchy_changed_cb): add casts to
+       fix warnings.
+
+       * gtk/gtkpathbar.c (_gtk_path_bar_set_file_system): remove unused
+       variable and add const to another to fix a warning.
+
 2008-01-07  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkassistant.c (remove_page): Be more robust when removing 
index 5246a21c2bf845414d0c56768fc40b0c88627971..29d828189e488938d7f1f4d09739d87b71708b4f 100644 (file)
@@ -1626,8 +1626,7 @@ make_label_spinbutton (GtkColorSelection *colorsel,
 {
   GtkWidget *label;
   GtkAdjustment *adjust;
-  ColorSelectionPrivate *priv = colorsel->private_data;
-  
+
   if (channel_type == COLORSEL_HUE)
     {
       adjust = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 360.0, 1.0, 1.0, 1.0));
index 7b58e80c4ab02953d70935f3e49dc45544ccca66..3dc094f82a2d31f311c397eb122a67f65b088d31 100644 (file)
@@ -1312,7 +1312,7 @@ gtk_combo_box_detacher (GtkWidget *widget,
   GtkComboBox *combo_box = GTK_COMBO_BOX (widget);
   GtkComboBoxPrivate *priv = combo_box->priv;
 
-  g_return_if_fail (priv->popup_widget == menu);
+  g_return_if_fail (priv->popup_widget == (GtkWidget *) menu);
 
   g_signal_handlers_disconnect_by_func (menu->toplevel,
                                        gtk_combo_box_menu_show,
index 5175f20ce9b9fc56368492a94fa302f87a444c3a..108f1f19aa28c945b59979fe82464d3bab5b43ad 100644 (file)
@@ -1375,7 +1375,7 @@ gtk_icon_theme_lookup_icon (GtkIconTheme       *icon_theme,
       gchar *p;
  
       dashes = 0;
-      for (p = icon_name; *p; p++)
+      for (p = (gchar *) icon_name; *p; p++)
         if (*p == '-')
           dashes++;
 
@@ -1389,13 +1389,13 @@ gtk_icon_theme_lookup_icon (GtkIconTheme       *icon_theme,
         }
       names[dashes + 1] = NULL;
    
-      info = choose_icon (icon_theme, names, size, flags);
+      info = choose_icon (icon_theme, (const gchar **) names, size, flags);
       
       g_strfreev (names);
     }
   else 
     {
-      gchar *names[2];
+      const gchar *names[2];
       
       names[0] = icon_name;
       names[1] = NULL;
@@ -2282,7 +2282,7 @@ theme_list_contexts (IconTheme  *theme,
       dir = l->data;
 
       context = g_quark_to_string (dir->context);
-      g_hash_table_replace (contexts, context, NULL);
+      g_hash_table_replace (contexts, (gpointer) context, NULL);
 
       l = l->next;
     }
index f13bbc4550b4d3af24dd688dcb126dc4378d9b26..7218b2e8f92616373997049582c62f388e411063 100644 (file)
@@ -1186,7 +1186,7 @@ beep_window (GdkWindow *window)
 {
   GtkWidget *widget;
 
-  gdk_window_get_user_data (window, &widget);
+  gdk_window_get_user_data (window, (gpointer) &widget);
 
   if (GTK_IS_WIDGET (widget))
     {
index 1fc0645c3d36e7cd0499d300d783a26ac8da4b91..927b9b6f1fc61d802b138f41c40e56358eda027d 100644 (file)
@@ -225,19 +225,19 @@ set_link_color (GtkLinkButton *link_button)
 
   if (link_button->priv->visited)
     {
-      gtk_widget_style_get (GTK_WIDGET (link_button), 
+      gtk_widget_style_get (GTK_WIDGET (link_button),
                            "visited-link-color", &link_color, NULL);
       if (!link_color)
-       link_color = &default_visited_link_color;
+       link_color = (GdkColor *) &default_visited_link_color;
     }
   else
     {
-      gtk_widget_style_get (GTK_WIDGET (link_button), 
+      gtk_widget_style_get (GTK_WIDGET (link_button),
                            "link-color", &link_color, NULL);
       if (!link_color)
-       link_color = &default_link_color;
+       link_color = (GdkColor *) &default_link_color;
     }
-  
+
   gtk_widget_modify_fg (label, GTK_STATE_NORMAL, link_color);
   gtk_widget_modify_fg (label, GTK_STATE_ACTIVE, link_color);
   gtk_widget_modify_fg (label, GTK_STATE_PRELIGHT, link_color);
index 6a11dc2eb223891a963e104f2fbccbf4c56138f2..76eccae0c18242ccd61cb695ce0d18bf1d56a5a2 100644 (file)
@@ -1664,7 +1664,6 @@ _gtk_path_bar_set_file_system (GtkPathBar    *path_bar,
                               GtkFileSystem *file_system)
 {
   const char *home;
-  char *desktop;
 
   g_return_if_fail (GTK_IS_PATH_BAR (path_bar));
 
@@ -1675,7 +1674,7 @@ _gtk_path_bar_set_file_system (GtkPathBar    *path_bar,
   home = g_get_home_dir ();
   if (home != NULL)
     {
-      gchar *freeme = NULL;
+      const gchar *desktop;
 
       path_bar->home_path = gtk_file_system_filename_to_path (path_bar->file_system, home);
       /* FIXME: Need file system backend specific way of getting the
index 2273579d1aba1c9bfc583cdc7ea8bd70494d575c..8f9b073a8f435c97f93125f93747067f1a2b06c9 100644 (file)
@@ -467,7 +467,7 @@ child_hierarchy_changed_cb (GtkWidget *widget,
     return;
   
   group = gtk_ui_manager_get_accel_group (uimgr);
-  groups = gtk_accel_groups_from_object (toplevel);
+  groups = gtk_accel_groups_from_object (G_OBJECT (toplevel));
   if (g_slist_find (groups, group) == NULL)
     gtk_window_add_accel_group (GTK_WINDOW (toplevel), group);