diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2011-01-28 12:17:51 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2011-01-28 12:17:51 +0000 |
commit | acc2c341bdd2bdc98480057c047f83c26d1c9f97 (patch) | |
tree | d17fe895b9ac599adc4b90a2c99f8cffe85e8834 /gtk/gtk_scaffolding.h | |
parent | aa3fc46df54bf3f6591c8b127b93001a80c03118 (diff) | |
download | netsurf-acc2c341bdd2bdc98480057c047f83c26d1c9f97.tar.gz netsurf-acc2c341bdd2bdc98480057c047f83c26d1c9f97.tar.bz2 |
Make GTK popup menu generated like the menu bar menu
Clean up gtk scaffoling of some gsoc madness
fix tab opening from popup menu
Remove forward declarations and stop exporting the symbols for every event handler when they should be static
svn path=/trunk/netsurf/; revision=11514
Diffstat (limited to 'gtk/gtk_scaffolding.h')
-rw-r--r-- | gtk/gtk_scaffolding.h | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/gtk/gtk_scaffolding.h b/gtk/gtk_scaffolding.h index 1db576ac1..76483e96b 100644 --- a/gtk/gtk_scaffolding.h +++ b/gtk/gtk_scaffolding.h @@ -153,88 +153,4 @@ void nsgtk_scaffolding_toolbar_size_allocate(GtkWidget *widget, gboolean nsgtk_window_url_activate_event(GtkWidget *, gpointer); gboolean nsgtk_window_url_changed(GtkWidget *, GdkEventKey *, gpointer); -#define MULTIPROTO(q)\ -gboolean nsgtk_on_##q##_activate(struct gtk_scaffolding *);\ -gboolean nsgtk_on_##q##_activate_menu(GtkMenuItem *, gpointer);\ -gboolean nsgtk_on_##q##_activate_button(GtkButton *, gpointer) -#define MENUPROTO(q)\ -gboolean nsgtk_on_##q##_activate(GtkMenuItem *, gpointer) -#define BUTTONPROTO(q)\ -gboolean nsgtk_on_##q##_activate(GtkButton *, gpointer) -/* prototypes for handlers */ -/* file menu */ -MULTIPROTO(newwindow); -MULTIPROTO(newtab); -MULTIPROTO(open_location); -MULTIPROTO(openfile); -MULTIPROTO(savepage); -MULTIPROTO(pdf); -MULTIPROTO(plaintext); -MULTIPROTO(drawfile); -MULTIPROTO(postscript); -MULTIPROTO(printpreview); -MULTIPROTO(print); -MULTIPROTO(closewindow); -MULTIPROTO(quit); - -/* edit menu */ -MULTIPROTO(cut); -MULTIPROTO(copy); -MULTIPROTO(paste); -MULTIPROTO(delete); -MULTIPROTO(selectall); -MULTIPROTO(find); -MULTIPROTO(preferences); - -/* view menu */ -MULTIPROTO(stop); -MULTIPROTO(reload); -MULTIPROTO(zoomplus); -MULTIPROTO(zoomnormal); -MULTIPROTO(zoomminus); -MULTIPROTO(fullscreen); -MULTIPROTO(viewsource); -MENUPROTO(menubar); -MENUPROTO(toolbar); -MULTIPROTO(downloads); -MULTIPROTO(savewindowsize); -MULTIPROTO(toggledebugging); -MULTIPROTO(saveboxtree); -MULTIPROTO(savedomtree); - -/* navigate menu */ -MULTIPROTO(back); -MULTIPROTO(forward); -MULTIPROTO(home); -MULTIPROTO(localhistory); -MULTIPROTO(globalhistory); -MULTIPROTO(addbookmarks); -MULTIPROTO(showbookmarks); -MULTIPROTO(showcookies); -MULTIPROTO(openlocation); - -/* tabs menu */ -MULTIPROTO(nexttab); -MULTIPROTO(prevtab); -MULTIPROTO(closetab); - -/* help menu */ -MULTIPROTO(contents); -MULTIPROTO(guide); -MULTIPROTO(info); -MULTIPROTO(about); - -/* popup menu */ -MENUPROTO(customize); -MENUPROTO(savelink); -MENUPROTO(linkfocused); -MENUPROTO(linkbackground); - -/* non-menu */ -BUTTONPROTO(history); - -#undef MULTIPROTO -#undef MENUPROTO -#undef BUTTONPROTO - #endif /* NETSURF_GTK_SCAFFOLDING_H */ |