Revision: 4620 http://geany.svn.sourceforge.net/geany/?rev=4620&view=rev Author: eht16 Date: 2010-01-31 21:51:23 +0000 (Sun, 31 Jan 2010)
Log Message: ----------- Backport from trunk: Cast the GTK way.
Modified Paths: -------------- branches/geany-0.18.1/plugins/filebrowser.c
Modified: branches/geany-0.18.1/plugins/filebrowser.c =================================================================== --- branches/geany-0.18.1/plugins/filebrowser.c 2010-01-31 21:51:13 UTC (rev 4619) +++ branches/geany-0.18.1/plugins/filebrowser.c 2010-01-31 21:51:23 UTC (rev 4620) @@ -759,30 +759,30 @@ gtk_toolbar_set_icon_size(GTK_TOOLBAR(toolbar), GTK_ICON_SIZE_MENU); gtk_toolbar_set_style(GTK_TOOLBAR(toolbar), GTK_TOOLBAR_ICONS);
- wid = (GtkWidget *) gtk_tool_button_new_from_stock(GTK_STOCK_GO_UP); + wid = GTK_WIDGET(gtk_tool_button_new_from_stock(GTK_STOCK_GO_UP)); ui_widget_set_tooltip_text(wid, _("Up")); g_signal_connect(wid, "clicked", G_CALLBACK(on_go_up), NULL); gtk_container_add(GTK_CONTAINER(toolbar), wid);
- wid = (GtkWidget *) gtk_tool_button_new_from_stock(GTK_STOCK_REFRESH); + wid = GTK_WIDGET(gtk_tool_button_new_from_stock(GTK_STOCK_REFRESH)); ui_widget_set_tooltip_text(wid, _("Refresh")); g_signal_connect(wid, "clicked", G_CALLBACK(refresh), NULL); gtk_container_add(GTK_CONTAINER(toolbar), wid);
- wid = (GtkWidget *) gtk_tool_button_new_from_stock(GTK_STOCK_HOME); + wid = GTK_WIDGET(gtk_tool_button_new_from_stock(GTK_STOCK_HOME)); ui_widget_set_tooltip_text(wid, _("Home")); g_signal_connect(wid, "clicked", G_CALLBACK(on_go_home), NULL); gtk_container_add(GTK_CONTAINER(toolbar), wid);
- wid = (GtkWidget *) gtk_tool_button_new_from_stock(GTK_STOCK_JUMP_TO); + wid = GTK_WIDGET(gtk_tool_button_new_from_stock(GTK_STOCK_JUMP_TO)); ui_widget_set_tooltip_text(wid, _("Set path from document")); g_signal_connect(wid, "clicked", G_CALLBACK(on_current_path), NULL); gtk_container_add(GTK_CONTAINER(toolbar), wid);
- wid = (GtkWidget *) gtk_separator_tool_item_new(); + wid = GTK_WIDGET(gtk_separator_tool_item_new()); gtk_container_add(GTK_CONTAINER(toolbar), wid);
- wid = (GtkWidget *) gtk_tool_button_new_from_stock(GTK_STOCK_CLEAR); + wid = GTK_WIDGET(gtk_tool_button_new_from_stock(GTK_STOCK_CLEAR)); ui_widget_set_tooltip_text(wid, _("Clear the filter")); g_signal_connect(wid, "clicked", G_CALLBACK(on_clear_filter), NULL); gtk_container_add(GTK_CONTAINER(toolbar), wid);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.