Commit dfe08514 authored by Ramiro Estrugo's avatar Ramiro Estrugo
Browse files

Add a toolbar button to instanciate services. Defaults to off if

	* src/nautilus-window-toolbars.c: (toolbar_services_callback):
	Add a toolbar button to instanciate services.  Defaults to off if
	EAZEL_SERVICES is not on.

	* icons/eazel/Makefile.am:
	* icons/eazel/Servics.png:
	Add services icon for toolbar.
parent 2ce76a9a
2000-07-10 Ramiro Estrugo <ramiro@eazel.com>
* src/nautilus-window-toolbars.c: (toolbar_services_callback):
Add a toolbar button to instanciate services. Defaults to off if
EAZEL_SERVICES is not on.
* icons/eazel/Makefile.am:
* icons/eazel/Servics.png:
Add services icon for toolbar.
2000-07-10 Robey Pointer <robey@eazel.com>
* components/services/trilobite/Makefile.am:
......
NULL=
eazeldir = $(datadir)/pixmaps/nautilus/eazel
eazel_DATA = \
Back.png \
eazel.xml \
Forward.png \
Home.png \
i-directory.png \
Refresh.png \
Search.png \
Services.png \
Stop.png \
Up.png \
eazel.xml \
i-directory-12.png \
i-directory-24.png \
i-directory-36.png \
i-directory-72.png \
i-directory-96.png \
i-directory-accept.png \
i-directory-accept-12.png \
i-directory-accept-24.png \
i-directory-accept-36.png \
i-directory-accept-72.png \
i-directory-accept-96.png \
i-regular.png \
i-regular.xml \
i-directory-accept.png \
i-directory.png \
i-regular-12.png \
i-regular-24.png \
i-regular-36.png \
i-regular-72.png \
i-regular-96.png \
Refresh.png \
Search.png \
Stop.png \
Up.png
i-regular.png \
i-regular.xml \
$(NULL)
EXTRA_DIST = $(eazel_DATA)
......@@ -37,6 +37,9 @@
/* forward declarations */
static void toolbar_reload_callback (GtkWidget *widget, NautilusWindow *window);
static void toolbar_stop_callback (GtkWidget *widget, NautilusWindow *window);
#if defined(EAZEL_SERVICES)
static void toolbar_services_callback (GtkWidget *widget, NautilusWindow *window);
#endif
/* toolbar definitions */
......@@ -49,6 +52,7 @@ static void toolbar_stop_callback (GtkWidget *widget, NautilusWindow *window);
#define TOOLBAR_SEARCH_BUTTON_INDEX 6
/* separator */
#define TOOLBAR_STOP_BUTTON_INDEX 8
#define TOOLBAR_SERVICES_INDEX 9
static void
toolbar_clear_search_mode(NautilusWindow *window)
......@@ -123,6 +127,11 @@ static GnomeUIInfo toolbar_info[] = {
GNOMEUIINFO_ITEM_STOCK
(N_("Stop"), N_("Interrupt loading"),
toolbar_stop_callback, "nautilus/eazel/Stop.png"),
#if defined(EAZEL_SERVICES)
GNOMEUIINFO_ITEM_STOCK
(N_("Services"), N_("Eazel Services"),
toolbar_services_callback, "nautilus/eazel/Services.png"),
#endif
GNOMEUIINFO_END
};
......@@ -345,3 +354,11 @@ toolbar_stop_callback (GtkWidget *widget, NautilusWindow *window)
nautilus_window_set_state_info (window, RESET_TO_IDLE, 0);
}
#if defined(EAZEL_SERVICES)
static void
toolbar_services_callback (GtkWidget *widget, NautilusWindow *window)
{
nautilus_window_goto_uri (window, "eazel:");
}
#endif
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