Revision: 4459 http://geany.svn.sourceforge.net/geany/?rev=4459&view=rev Author: eht16 Date: 2009-11-30 22:04:32 +0000 (Mon, 30 Nov 2009)
Log Message: ----------- Cast the GTK way.
Modified Paths: -------------- trunk/plugins/filebrowser.c
Modified: trunk/plugins/filebrowser.c =================================================================== --- trunk/plugins/filebrowser.c 2009-11-30 21:56:51 UTC (rev 4458) +++ trunk/plugins/filebrowser.c 2009-11-30 22:04:32 UTC (rev 4459) @@ -786,32 +786,32 @@ 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);
if (gtk_check_version(2, 15, 2) != NULL) { - 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.