[gedit] tab: more precise return type for _gedit_tab_get_view_frame()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] tab: more precise return type for _gedit_tab_get_view_frame()
- Date: Sun, 14 Jun 2015 15:16:23 +0000 (UTC)
commit 74fe4369bce36757df9230cd70b31f486ab352c7
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Jun 14 17:14:59 2015 +0200
tab: more precise return type for _gedit_tab_get_view_frame()
gedit/gedit-commands-search.c | 6 +++---
gedit/gedit-tab-private.h | 7 ++++---
gedit/gedit-tab.c | 4 ++--
3 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/gedit/gedit-commands-search.c b/gedit/gedit-commands-search.c
index 3d21329..109d552 100644
--- a/gedit/gedit-commands-search.c
+++ b/gedit/gedit-commands-search.c
@@ -586,7 +586,7 @@ _gedit_cmd_search_find (GSimpleAction *action,
return;
}
- frame = GEDIT_VIEW_FRAME (_gedit_tab_get_view_frame (active_tab));
+ frame = _gedit_tab_get_view_frame (active_tab);
gedit_view_frame_popup_search (frame);
}
@@ -663,7 +663,7 @@ _gedit_cmd_search_clear_highlight (GSimpleAction *action,
return;
}
- frame = GEDIT_VIEW_FRAME (_gedit_tab_get_view_frame (active_tab));
+ frame = _gedit_tab_get_view_frame (active_tab);
gedit_view_frame_clear_search (frame);
doc = gedit_view_frame_get_document (frame);
@@ -688,7 +688,7 @@ _gedit_cmd_search_goto_line (GSimpleAction *action,
return;
}
- frame = GEDIT_VIEW_FRAME (_gedit_tab_get_view_frame (active_tab));
+ frame = _gedit_tab_get_view_frame (active_tab);
gedit_view_frame_popup_goto_line (frame);
}
diff --git a/gedit/gedit-tab-private.h b/gedit/gedit-tab-private.h
index 95fa29b..21075fa 100644
--- a/gedit/gedit-tab-private.h
+++ b/gedit/gedit-tab-private.h
@@ -21,7 +21,8 @@
#ifndef __GEDIT_TAB_PRIVATE_H__
#define __GEDIT_TAB_PRIVATE_H__
-#include <gedit/gedit-tab.h>
+#include "gedit-tab.h"
+#include "gedit-view-frame.h"
G_BEGIN_DECLS
@@ -40,7 +41,7 @@ GtkWidget *_gedit_tab_new_from_stream (GInputStream *stream,
const GtkSourceEncoding *encoding,
gint line_pos,
gint column_pos);
-
+
gchar *_gedit_tab_get_name (GeditTab *tab);
gchar *_gedit_tab_get_tooltip (GeditTab *tab);
@@ -85,7 +86,7 @@ void _gedit_tab_mark_for_closing (GeditTab *tab);
gboolean _gedit_tab_get_can_close (GeditTab *tab);
-GtkWidget *_gedit_tab_get_view_frame (GeditTab *tab);
+GeditViewFrame *_gedit_tab_get_view_frame (GeditTab *tab);
void _gedit_tab_set_network_available (GeditTab *tab,
gboolean enable);
diff --git a/gedit/gedit-tab.c b/gedit/gedit-tab.c
index 067c256..522c204 100644
--- a/gedit/gedit-tab.c
+++ b/gedit/gedit-tab.c
@@ -3041,10 +3041,10 @@ gedit_tab_set_info_bar (GeditTab *tab,
set_info_bar (tab, info_bar, GTK_RESPONSE_NONE);
}
-GtkWidget *
+GeditViewFrame *
_gedit_tab_get_view_frame (GeditTab *tab)
{
- return GTK_WIDGET (tab->frame);
+ return tab->frame;
}
/* ex:set ts=8 noet: */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]