[gedit] Fix warnings
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Fix warnings
- Date: Sun, 23 May 2010 17:42:17 +0000 (UTC)
commit 662507af2420a38bb66397f18cff4550581ec93d
Author: Garrett Regier <alias301 gmail com>
Date: Sun May 23 10:41:58 2010 -0700
Fix warnings
gedit/gedit-notebook.c | 1 -
gedit/gedit-window.c | 4 ++--
2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gedit/gedit-notebook.c b/gedit/gedit-notebook.c
index ea3dd29..fcee52a 100644
--- a/gedit/gedit-notebook.c
+++ b/gedit/gedit-notebook.c
@@ -681,7 +681,6 @@ gedit_notebook_switch_page_cb (GtkNotebook *notebook,
{
GeditNotebook *nb = GEDIT_NOTEBOOK (notebook);
GtkWidget *child;
- GeditView *view;
child = gtk_notebook_get_nth_page (notebook, page_num);
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index d5c39ff..dfbc6fd 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -3802,7 +3802,7 @@ side_panel_visibility_changed (GtkWidget *side_panel,
/* focus the document */
if (!visible && window->priv->active_tab != NULL)
{
- gtk_widget_grab_focus (window->priv->active_tab);
+ gtk_widget_grab_focus (GTK_WIDGET (window->priv->active_tab));
}
}
@@ -3859,7 +3859,7 @@ bottom_panel_visibility_changed (GeditPanel *bottom_panel,
/* focus the document */
if (!visible && window->priv->active_tab != NULL)
{
- gtk_widget_grab_focus (window->priv->active_tab);
+ gtk_widget_grab_focus (GTK_WIDGET (window->priv->active_tab));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]