]> Pileus Git - ~andy/gtk/commitdiff
Merge remaining fixes from the 2.8 branch, pointed out by Michael
authorMatthias Clasen <mclasen@redhat.com>
Mon, 21 Nov 2005 15:00:57 +0000 (15:00 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 21 Nov 2005 15:00:57 +0000 (15:00 +0000)
2005-11-21  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkpathbar.c: Merge remaining fixes from the 2.8 branch,
pointed out by Michael Natterer.

ChangeLog
ChangeLog.pre-2-10
gtk/gtkpathbar.c

index 5c48f1762a731bab3edf03433286eae6bf2d2f49..43cedd5547df4e289a8806f88b6ba767e1b10511 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-11-21  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkpathbar.c: Merge remaining fixes from the 2.8 branch,
+       pointed out by Michael Natterer.
+
        Fix for bug #321542, Benedikt Meurer:
        
        * gtk/gtkcombobox.c (gtk_combo_box_set_active_internal):
index 5c48f1762a731bab3edf03433286eae6bf2d2f49..43cedd5547df4e289a8806f88b6ba767e1b10511 100644 (file)
@@ -1,5 +1,8 @@
 2005-11-21  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkpathbar.c: Merge remaining fixes from the 2.8 branch,
+       pointed out by Michael Natterer.
+
        Fix for bug #321542, Benedikt Meurer:
        
        * gtk/gtkcombobox.c (gtk_combo_box_set_active_internal):
index 5a8740bc0aa22a3db7dda956c6110fe05f2f12d2..ce13d701694bdc6998db7dc0f5841230ca6cc81c 100644 (file)
@@ -125,7 +125,7 @@ get_slider_button (GtkPathBar  *path_bar,
   gtk_widget_push_composite_child ();
 
   button = gtk_button_new ();
-  gtk_button_set_focus_on_click (button, FALSE);
+  gtk_button_set_focus_on_click (GTK_BUTTON (button), FALSE);
   gtk_container_add (GTK_CONTAINER (button), gtk_arrow_new (arrow_type, GTK_SHADOW_OUT));
   gtk_container_add (GTK_CONTAINER (path_bar), button);
   gtk_widget_show_all (button);
@@ -307,13 +307,19 @@ gtk_path_bar_update_slider_buttons (GtkPathBar *path_bar)
 
       button = BUTTON_DATA (path_bar->button_list->data)->button;
       if (gtk_widget_get_child_visible (button))
-       gtk_widget_set_sensitive (path_bar->down_slider_button, FALSE);
+       {
+         gtk_path_bar_stop_scrolling (path_bar);
+         gtk_widget_set_sensitive (path_bar->down_slider_button, FALSE);
+       }
       else
        gtk_widget_set_sensitive (path_bar->down_slider_button, TRUE);
 
       button = BUTTON_DATA (g_list_last (path_bar->button_list)->data)->button;
       if (gtk_widget_get_child_visible (button))
-       gtk_widget_set_sensitive (path_bar->up_slider_button, FALSE);
+       {
+         gtk_path_bar_stop_scrolling (path_bar);
+         gtk_widget_set_sensitive (path_bar->up_slider_button, FALSE);
+       }
       else
        gtk_widget_set_sensitive (path_bar->up_slider_button, TRUE);
     }
@@ -1134,7 +1140,7 @@ button_drag_data_get_cb (GtkWidget          *widget,
   gtk_selection_data_set (selection_data,
                          selection_data->target,
                          8,
-                         uri_list,
+                         (guchar *)uri_list,
                          strlen (uri_list));
   g_free (uri_list);
 }
@@ -1160,7 +1166,7 @@ make_directory_button (GtkPathBar  *path_bar,
 
   button_data->type = find_button_type (path_bar, path);
   button_data->button = gtk_toggle_button_new ();
-  gtk_button_set_focus_on_click (button_data->button, FALSE);
+  gtk_button_set_focus_on_click (GTK_BUTTON (button_data->button), FALSE);
 
   switch (button_data->type)
     {