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):
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):
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);
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);
}
gtk_selection_data_set (selection_data,
selection_data->target,
8,
- uri_list,
+ (guchar *)uri_list,
strlen (uri_list));
g_free (uri_list);
}
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)
{