Commit e1f451b6 authored by Paolo Borelli's avatar Paolo Borelli

fix compiler warnings introduced in the last patch.

parent f0e61ba5
2006-02-19 Paolo Borelli <pborelli@katamail.com>
* gedit/gedit-command-file.c:
* gedit/gedit-command-view.c:
* gedit/gedit-tab.[ch]:
fix compiler warnings.
2006-02-19 Paolo Borelli <pborelli@katamail.com>
* gedit/gedit-document.[ch]:
......
......@@ -104,7 +104,6 @@ load_file_list (GeditWindow *window,
(gedit_tab_get_state (tab) == GEDIT_TAB_STATE_NORMAL))
{
const gchar *uri;
gboolean ret;
uri = (const gchar *)uris->data;
......
......@@ -89,12 +89,12 @@ gedit_cmd_view_show_side_pane (GtkAction *action,
if (visible)
{
gtk_widget_show (panel);
gtk_widget_grab_focus (panel);
gtk_widget_show (GTK_WIDGET (panel));
gtk_widget_grab_focus (GTK_WIDGET (panel));
}
else
{
gtk_widget_hide (panel);
gtk_widget_hide (GTK_WIDGET (panel));
}
}
......@@ -113,11 +113,11 @@ gedit_cmd_view_show_bottom_panel (GtkAction *action,
if (visible)
{
gtk_widget_show (panel);
gtk_widget_grab_focus (panel);
gtk_widget_show (GTK_WIDGET (panel));
gtk_widget_grab_focus (GTK_WIDGET (panel));
}
else
{
gtk_widget_hide (panel);
gtk_widget_hide (GTK_WIDGET (panel));
}
}
......@@ -1444,12 +1444,10 @@ _gedit_tab_new_from_uri (const gchar *uri,
{
GeditTab *tab;
gboolean ret;
g_return_val_if_fail (uri != NULL, NULL);
tab = GEDIT_TAB (_gedit_tab_new ());
_gedit_tab_load (tab,
uri,
encoding,
......@@ -1771,17 +1769,17 @@ _gedit_tab_load (GeditTab *tab,
{
GeditDocument *doc;
g_return_val_if_fail (GEDIT_IS_TAB (tab), FALSE);
g_return_val_if_fail (tab->priv->state == GEDIT_TAB_STATE_NORMAL, FALSE);
g_return_if_fail (GEDIT_IS_TAB (tab));
g_return_if_fail (tab->priv->state == GEDIT_TAB_STATE_NORMAL);
doc = gedit_tab_get_document (tab);
g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), FALSE);
g_return_if_fail (GEDIT_IS_DOCUMENT (doc));
gedit_tab_set_state (tab, GEDIT_TAB_STATE_LOADING);
tab->priv->tmp_line_pos = line_pos;
tab->priv->tmp_encoding = encoding;
if (tab->priv->auto_save_timeout > 0)
remove_auto_save_timeout (tab);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment