Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/337c2ed7b171d757516d6a828a062366f2d783e8
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/337c2ed7b171d757516d6a828a062366f2d783e8
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/337c2ed7b171d757516d6a828a062366f2d783e8

The branch, master has been updated
       via  337c2ed7b171d757516d6a828a062366f2d783e8 (commit)
      from  31ef86a016f0d27eea4f3b581aec0a0f796f619f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=337c2ed7b171d757516d6a828a062366f2d783e8
commit 337c2ed7b171d757516d6a828a062366f2d783e8
Author: Vincent Sanders <[email protected]>
Commit: Vincent Sanders <[email protected]>

    remove unused gtk window interfaces and clean up documentation

diff --git a/frontends/gtk/window.c b/frontends/gtk/window.c
index 5e8538f..e6581c7 100644
--- a/frontends/gtk/window.c
+++ b/frontends/gtk/window.c
@@ -167,16 +167,6 @@ void nsgtk_window_set_tab(struct gui_window *g, GtkWidget 
*w)
 }
 
 
-struct gui_window *nsgtk_window_iterate(struct gui_window *g)
-{
-       return g->next;
-}
-
-float nsgtk_get_scale_for_gui(struct gui_window *g)
-{
-       return browser_window_get_scale(g->bw);
-}
-
 static void nsgtk_select_menu_clicked(GtkCheckMenuItem *checkmenuitem,
                                        gpointer user_data)
 {
diff --git a/frontends/gtk/window.h b/frontends/gtk/window.h
index 7e46a7c..4bedea4 100644
--- a/frontends/gtk/window.h
+++ b/frontends/gtk/window.h
@@ -30,17 +30,73 @@ typedef enum nsgtk_window_signals {
 extern struct gui_window *window_list;
 extern int temp_open_background;
 
-struct browser_window *nsgtk_get_browser_window(struct gui_window *g);
-struct nsgtk_scaffolding *nsgtk_get_scaffold(struct gui_window *g);
+/**
+ * get core browsing context from gui window handle
+ *
+ * \param gw gui window handle
+ */
+struct browser_window *nsgtk_get_browser_window(struct gui_window *gw);
+
+/**
+ * get containing nsgtk scaffolding handle from gui window handle
+ *
+ * \param gw gui window handle
+ */
+struct nsgtk_scaffolding *nsgtk_get_scaffold(struct gui_window *gw);
+
+/**
+ * get gdk pixbuf of favicon from gui window handle
+ *
+ * \param gw gui window handle
+ */
 GdkPixbuf *nsgtk_get_icon(struct gui_window *gw);
+
+/**
+ * cause all windows be be reflowed
+ */
 void nsgtk_reflow_all_windows(void);
-float nsgtk_get_scale_for_gui(struct gui_window *g);
-int nsgtk_gui_window_update_targets(struct gui_window *g);
-void nsgtk_window_destroy_browser(struct gui_window *g);
-unsigned long nsgtk_window_get_signalhandler(struct gui_window *g, int i);
-GtkLayout *nsgtk_window_get_layout(struct gui_window *g);
-struct gui_window *nsgtk_window_iterate(struct gui_window *g);
-GtkWidget *nsgtk_window_get_tab(struct gui_window *g);
-void nsgtk_window_set_tab(struct gui_window *g, GtkWidget *w);
+
+/**
+ * update targets
+ *
+ * \param gw gui window handle
+ */
+int nsgtk_gui_window_update_targets(struct gui_window *gw);
+
+/**
+ * destroy browsing context
+ *
+ * \param gw gui window handle
+ */
+void nsgtk_window_destroy_browser(struct gui_window *gw);
+
+/**
+ * set signal handler
+ *
+ * \param gw gui window handle
+ */
+unsigned long nsgtk_window_get_signalhandler(struct gui_window *gw, int i);
+
+/**
+ * get gtk layout from gui handle
+ *
+ * \param gw gui window handle
+ */
+GtkLayout *nsgtk_window_get_layout(struct gui_window *gw);
+
+/**
+ * get tab widget from gui window handle
+ *
+ * \param gw gui window handle
+ */
+GtkWidget *nsgtk_window_get_tab(struct gui_window *gw);
+
+/**
+ * set tab widget associated with gui window handle
+ *
+ * \param gw gui window handle
+ * \param w gtk widget to associate
+ */
+void nsgtk_window_set_tab(struct gui_window *gw, GtkWidget *w);
 
 #endif /* NETSURF_GTK_WINDOW_H */


-----------------------------------------------------------------------

Summary of changes:
 frontends/gtk/window.c |   10 -------
 frontends/gtk/window.h |   76 +++++++++++++++++++++++++++++++++++++++++-------
 2 files changed, 66 insertions(+), 20 deletions(-)

diff --git a/frontends/gtk/window.c b/frontends/gtk/window.c
index 5e8538f..e6581c7 100644
--- a/frontends/gtk/window.c
+++ b/frontends/gtk/window.c
@@ -167,16 +167,6 @@ void nsgtk_window_set_tab(struct gui_window *g, GtkWidget 
*w)
 }
 
 
-struct gui_window *nsgtk_window_iterate(struct gui_window *g)
-{
-       return g->next;
-}
-
-float nsgtk_get_scale_for_gui(struct gui_window *g)
-{
-       return browser_window_get_scale(g->bw);
-}
-
 static void nsgtk_select_menu_clicked(GtkCheckMenuItem *checkmenuitem,
                                        gpointer user_data)
 {
diff --git a/frontends/gtk/window.h b/frontends/gtk/window.h
index 7e46a7c..4bedea4 100644
--- a/frontends/gtk/window.h
+++ b/frontends/gtk/window.h
@@ -30,17 +30,73 @@ typedef enum nsgtk_window_signals {
 extern struct gui_window *window_list;
 extern int temp_open_background;
 
-struct browser_window *nsgtk_get_browser_window(struct gui_window *g);
-struct nsgtk_scaffolding *nsgtk_get_scaffold(struct gui_window *g);
+/**
+ * get core browsing context from gui window handle
+ *
+ * \param gw gui window handle
+ */
+struct browser_window *nsgtk_get_browser_window(struct gui_window *gw);
+
+/**
+ * get containing nsgtk scaffolding handle from gui window handle
+ *
+ * \param gw gui window handle
+ */
+struct nsgtk_scaffolding *nsgtk_get_scaffold(struct gui_window *gw);
+
+/**
+ * get gdk pixbuf of favicon from gui window handle
+ *
+ * \param gw gui window handle
+ */
 GdkPixbuf *nsgtk_get_icon(struct gui_window *gw);
+
+/**
+ * cause all windows be be reflowed
+ */
 void nsgtk_reflow_all_windows(void);
-float nsgtk_get_scale_for_gui(struct gui_window *g);
-int nsgtk_gui_window_update_targets(struct gui_window *g);
-void nsgtk_window_destroy_browser(struct gui_window *g);
-unsigned long nsgtk_window_get_signalhandler(struct gui_window *g, int i);
-GtkLayout *nsgtk_window_get_layout(struct gui_window *g);
-struct gui_window *nsgtk_window_iterate(struct gui_window *g);
-GtkWidget *nsgtk_window_get_tab(struct gui_window *g);
-void nsgtk_window_set_tab(struct gui_window *g, GtkWidget *w);
+
+/**
+ * update targets
+ *
+ * \param gw gui window handle
+ */
+int nsgtk_gui_window_update_targets(struct gui_window *gw);
+
+/**
+ * destroy browsing context
+ *
+ * \param gw gui window handle
+ */
+void nsgtk_window_destroy_browser(struct gui_window *gw);
+
+/**
+ * set signal handler
+ *
+ * \param gw gui window handle
+ */
+unsigned long nsgtk_window_get_signalhandler(struct gui_window *gw, int i);
+
+/**
+ * get gtk layout from gui handle
+ *
+ * \param gw gui window handle
+ */
+GtkLayout *nsgtk_window_get_layout(struct gui_window *gw);
+
+/**
+ * get tab widget from gui window handle
+ *
+ * \param gw gui window handle
+ */
+GtkWidget *nsgtk_window_get_tab(struct gui_window *gw);
+
+/**
+ * set tab widget associated with gui window handle
+ *
+ * \param gw gui window handle
+ * \param w gtk widget to associate
+ */
+void nsgtk_window_set_tab(struct gui_window *gw, GtkWidget *w);
 
 #endif /* NETSURF_GTK_WINDOW_H */


-- 
NetSurf Browser

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to