PROP_ARRAY,
g_param_spec_object (
"array",
- _("Array"),
- _("The array the action represents"),
+ "Array",
+ "The array the action represents",
KATZE_TYPE_ARRAY,
G_PARAM_READWRITE));
}
PROP_NAME,
g_param_spec_string (
"name",
- _("Name"),
- _("The name of the item"),
+ "Name",
+ "The name of the item",
NULL,
flags));
PROP_TEXT,
g_param_spec_string (
"text",
- _("Text"),
- _("The descriptive text of the item"),
+ "Text",
+ "The descriptive text of the item",
NULL,
flags));
PROP_URI,
g_param_spec_string (
"uri",
- _("URI"),
- _("The URI of the item"),
+ "URI",
+ "The URI of the item",
NULL,
flags));
PROP_ICON,
g_param_spec_string (
"icon",
- _("Icon"),
- _("The icon of the item"),
+ "Icon",
+ "The icon of the item",
NULL,
flags));
PROP_TOKEN,
g_param_spec_string (
"token",
- _("Token"),
- _("The token of the item"),
+ "Token",
+ "The token of the item",
NULL,
flags));
PROP_ADDED,
g_param_spec_string (
"added",
- _("Added"),
- _("When the item was added"),
+ "Added",
+ "When the item was added",
NULL,
flags));
PROP_VISITS,
g_param_spec_int (
"visits",
- _("Visits"),
- _("The number of visits of the item"),
+ "Visits",
+ "The number of visits of the item",
G_MININT,
G_MAXINT,
0,
#include "katze-utils.h"
-#include <gtk/gtk.h>
#include <glib/gi18n.h>
struct _KatzeThrobber
};
static void
-katze_throbber_dispose(GObject* object);
+katze_throbber_dispose (GObject* object);
static void
katze_throbber_set_property (GObject* object,
PROP_ICON_SIZE,
g_param_spec_int (
"icon-size",
- _("Icon size"),
- _("Symbolic size to use for the animation"),
+ "Icon size",
+ "Symbolic size to use for the animation",
0, G_MAXINT, GTK_ICON_SIZE_MENU,
flags));
PROP_ICON_NAME,
g_param_spec_string (
"icon-name",
- _("Icon Name"),
- _("The name of an icon containing animation frames"),
+ "Icon Name",
+ "The name of an icon containing animation frames",
"process-working",
flags));
PROP_PIXBUF,
g_param_spec_object (
"pixbuf",
- _("Pixbuf"),
- _("A GdkPixbuf containing animation frames"),
+ "Pixbuf",
+ "A GdkPixbuf containing animation frames",
GDK_TYPE_PIXBUF,
G_PARAM_READWRITE));
PROP_ANIMATED,
g_param_spec_boolean (
"animated",
- _("Animated"),
- _("Whether the throbber should be animated"),
+ "Animated",
+ "Whether the throbber should be animated",
FALSE,
flags));
PROP_STATIC_ICON_NAME,
g_param_spec_string (
"static-icon-name",
- _("Static Icon Name"),
- _("The name of an icon to be used as the static image"),
+ "Static Icon Name",
+ "The name of an icon to be used as the static image",
NULL,
flags));
PROP_PIXBUF,
g_param_spec_object (
"static-pixbuf",
- _("Static Pixbuf"),
- _("A GdkPixbuf to be used as the static image"),
+ "Static Pixbuf",
+ "A GdkPixbuf to be used as the static image",
GDK_TYPE_PIXBUF,
G_PARAM_READWRITE));
PROP_STATIC_STOCK_ID,
g_param_spec_string (
"static-stock-id",
- _("Static Stock ID"),
- _("The stock ID of an icon to be used as the static image"),
+ "Static Stock ID",
+ "The stock ID of an icon to be used as the static image",
NULL,
flags));
}
#ifndef __KATZE_THROBBER_H__
#define __KATZE_THROBBER_H__
-#include <gdk/gdk.h>
#include <gtk/gtk.h>
G_BEGIN_DECLS
#include <config.h>
#endif
-#include <glib.h>
#if HAVE_GIO
-#include <gio/gio.h>
+ #include <gio/gio.h>
#endif
#include <webkit/webkit.h>
PROP_WEB_WIDGET,
g_param_spec_object (
"web-widget",
- _("Web Widget"),
- _("The assigned web widget"),
+ "Web Widget",
+ "The assigned web widget",
GTK_TYPE_WIDGET,
G_PARAM_READWRITE));
PROP_KIND,
g_param_spec_enum (
"kind",
- _("Kind"),
- _("The kind of addons"),
+ "Kind",
+ "The kind of addons",
MIDORI_TYPE_ADDON_KIND,
MIDORI_ADDON_NONE,
flags));
PROP_SETTINGS,
g_param_spec_object (
"settings",
- _("Settings"),
- _("The associated settings"),
+ "Settings",
+ "The associated settings",
MIDORI_TYPE_WEB_SETTINGS,
G_PARAM_READWRITE));
PROP_BOOKMARKS,
g_param_spec_object (
"bookmarks",
- _("Bookmarks"),
- _("The bookmarks folder, containing all bookmarks"),
+ "Bookmarks",
+ "The bookmarks folder, containing all bookmarks",
KATZE_TYPE_ARRAY,
G_PARAM_READWRITE));
PROP_TRASH,
g_param_spec_object (
"trash",
- _("Trash"),
- _("The trash, collecting recently closed tabs and windows"),
+ "Trash",
+ "The trash, collecting recently closed tabs and windows",
KATZE_TYPE_ARRAY,
G_PARAM_READWRITE));
PROP_SEARCH_ENGINES,
g_param_spec_object (
"search-engines",
- _("Search Engines"),
- _("The list of search engines"),
+ "Search Engines",
+ "The list of search engines",
KATZE_TYPE_ARRAY,
G_PARAM_READWRITE));
PROP_BROWSER,
g_param_spec_object (
"browser",
- _("Browser"),
- _("The current browser"),
+ "Browser",
+ "The current browser",
MIDORI_TYPE_BROWSER,
G_PARAM_READABLE));
PROP_BROWSER_COUNT,
g_param_spec_uint (
"browser-count",
- _("Browser Count"),
- _("The current number of browsers"),
+ "Browser Count",
+ "The current number of browsers",
0, G_MAXUINT, 0,
G_PARAM_READABLE));
PROP_HISTORY,
g_param_spec_object (
"history",
- _("History"),
- _("The list of history items"),
+ "History",
+ "The list of history items",
KATZE_TYPE_ARRAY,
G_PARAM_READWRITE));
PROP_MENUBAR,
g_param_spec_object (
"menubar",
- _("Menubar"),
- _("The menubar"),
+ "Menubar",
+ "The menubar",
GTK_TYPE_MENU_BAR,
G_PARAM_READABLE));
PROP_NAVIGATIONBAR,
g_param_spec_object (
"navigationbar",
- _("Navigationbar"),
- _("The navigationbar"),
+ "Navigationbar",
+ "The navigationbar",
GTK_TYPE_TOOLBAR,
G_PARAM_READABLE));
PROP_URI,
g_param_spec_string (
"uri",
- _("URI"),
- _("The current URI"),
+ "URI",
+ "The current URI",
"about:blank",
G_PARAM_READWRITE));
PROP_TAB,
g_param_spec_object (
"tab",
- _("Tab"),
- _("The current tab"),
+ "Tab",
+ "The current tab",
GTK_TYPE_WIDGET,
G_PARAM_READWRITE));
PROP_STATUSBAR,
g_param_spec_object (
"statusbar",
- _("Statusbar"),
- _("The statusbar"),
+ "Statusbar",
+ "The statusbar",
GTK_TYPE_STATUSBAR,
G_PARAM_READABLE));
PROP_STATUSBAR_TEXT,
g_param_spec_string (
"statusbar-text",
- _("Statusbar Text"),
- _("The text that is displayed in the statusbar"),
+ "Statusbar Text",
+ "The text that is displayed in the statusbar",
"",
flags));
PROP_SETTINGS,
g_param_spec_object (
"settings",
- _("Settings"),
- _("The associated settings"),
+ "Settings",
+ "The associated settings",
MIDORI_TYPE_WEB_SETTINGS,
G_PARAM_READWRITE));
PROP_BOOKMARKS,
g_param_spec_object (
"bookmarks",
- _("Bookmarks"),
- _("The bookmarks folder, containing all bookmarks"),
+ "Bookmarks",
+ "The bookmarks folder, containing all bookmarks",
KATZE_TYPE_ARRAY,
G_PARAM_READWRITE));
PROP_TRASH,
g_param_spec_object (
"trash",
- _("Trash"),
- _("The trash, collecting recently closed tabs and windows"),
+ "Trash",
+ "The trash, collecting recently closed tabs and windows",
KATZE_TYPE_ARRAY,
G_PARAM_READWRITE));
PROP_SEARCH_ENGINES,
g_param_spec_object (
"search-engines",
- _("Search Engines"),
- _("The list of search engines to be used for web search"),
+ "Search Engines",
+ "The list of search engines to be used for web search",
KATZE_TYPE_ARRAY,
G_PARAM_READWRITE));
PROP_HISTORY,
g_param_spec_object (
"history",
- _("History"),
- _("The list of history items"),
+ "History",
+ "The list of history items",
KATZE_TYPE_ARRAY,
G_PARAM_READWRITE));
}
N_("_Navigationbar"), "",
N_("Show navigationbar"), G_CALLBACK (_action_navigationbar_activate),
FALSE },
- { "Panel", NULL,
+ { "Panel", GTK_STOCK_INDENT,
N_("Side_panel"), "F9",
N_("Show sidepanel"), G_CALLBACK (_action_panel_activate),
FALSE },
PROP_PROGRESS,
g_param_spec_double (
"progress",
- _("Progress"),
- _("The current progress of the action"),
+ "Progress",
+ "The current progress of the action",
0.0, 1.0, 0.0,
G_PARAM_WRITABLE));
PROP_SECONDARY_ICON,
g_param_spec_string (
"secondary-icon",
- _("Secondary"),
- _("The stock ID of the secondary icon"),
+ "Secondary",
+ "The stock ID of the secondary icon",
NULL,
G_PARAM_WRITABLE));
}
PROP_SHADOW_TYPE,
g_param_spec_enum (
"shadow-type",
- _("Shadow Type"),
- _("Appearance of the shadow around each panel"),
+ "Shadow Type",
+ "Appearance of the shadow around each panel",
GTK_TYPE_SHADOW_TYPE,
GTK_SHADOW_NONE,
flags));
PROP_MENU,
g_param_spec_object (
"menu",
- _("Menu"),
- _("Menu to hold panel items"),
+ "Menu",
+ "Menu to hold panel items",
GTK_TYPE_MENU,
G_PARAM_READWRITE));
PROP_PAGE,
g_param_spec_int (
"page",
- _("Page"),
- _("The index of the current page"),
+ "Page",
+ "The index of the current page",
-1, G_MAXINT, -1,
flags));
}
gtk_widget_show (toolbar);
gtk_container_add (GTK_CONTAINER (panel->toolbook), toolbar);
- n = midori_panel_page_num (panel, child);
+ n = midori_panel_page_num (panel, scrolled);
g_object_set_data (G_OBJECT (child), "label", (gchar*)label);
{
menuitem = gtk_image_menu_item_new_from_stock (stock_id, NULL);
gtk_widget_show (menuitem);
- g_object_set_data (G_OBJECT (menuitem), "page", child);
+ g_object_set_data (G_OBJECT (menuitem), "page", scrolled);
g_object_set_data (G_OBJECT (menuitem), "toolitem", toolitem);
g_signal_connect (menuitem, "activate",
G_CALLBACK (midori_panel_menu_item_activate_cb),
PROP_SETTINGS,
g_param_spec_object (
"settings",
- _("Settings"),
- _("Settings instance to provide properties"),
+ "Settings",
+ "Settings instance to provide properties",
MIDORI_TYPE_WEB_SETTINGS,
G_PARAM_WRITABLE));
}
PROP_SEARCH_ENGINES,
g_param_spec_object (
"search-engines",
- _("Search Engines"),
- _("The list of search engines"),
+ "Search Engines",
+ "The list of search engines",
KATZE_TYPE_ARRAY,
G_PARAM_READWRITE));
PROP_CURRENT_ITEM,
g_param_spec_object (
"current-item",
- _("Current Item"),
- _("The currently selected item"),
+ "Current Item",
+ "The currently selected item",
KATZE_TYPE_ITEM,
G_PARAM_READWRITE));
PROP_TEXT,
g_param_spec_string (
"text",
- _("Text"),
- _("The current text typed in the entry"),
+ "Text",
+ "The current text typed in the entry",
NULL,
G_PARAM_READWRITE));
PROP_DIALOG,
g_param_spec_object (
"dialog",
- _("Dialog"),
- _("A dialog to manage search engines"),
+ "Dialog",
+ "A dialog to manage search engines",
GTK_TYPE_DIALOG,
G_PARAM_READABLE));
}
PROP_URI,
g_param_spec_string (
"uri",
- _("Uri"),
- _("The URI of the currently loaded page"),
+ "Uri",
+ "The URI of the currently loaded page",
"about:blank",
G_PARAM_READABLE));
PROP_TITLE,
g_param_spec_string (
"title",
- _("Title"),
- _("The title of the currently loaded page"),
+ "Title",
+ "The title of the currently loaded page",
NULL,
G_PARAM_READWRITE));
PROP_ICON,
g_param_spec_object (
"icon",
- _("Icon"),
- _("The icon of the view"),
+ "Icon",
+ "The icon of the view",
GDK_TYPE_PIXBUF,
G_PARAM_READABLE));
PROP_LOAD_STATUS,
g_param_spec_enum (
"load-status",
- _("Load Status"),
- _("The current loading status"),
+ "Load Status",
+ "The current loading status",
MIDORI_TYPE_LOAD_STATUS,
MIDORI_LOAD_FINISHED,
G_PARAM_READABLE));
PROP_PROGRESS,
g_param_spec_double (
"progress",
- _("Progress"),
- _("The current loading progress"),
+ "Progress",
+ "The current loading progress",
0.0, 1.0, 0.0,
G_PARAM_READABLE));
PROP_ZOOM_LEVEL,
g_param_spec_float (
"zoom-level",
- _("Zoom Level"),
- _("The current zoom level"),
+ "Zoom Level",
+ "The current zoom level",
G_MINFLOAT,
G_MAXFLOAT,
1.0f,
PROP_STATUSBAR_TEXT,
g_param_spec_string (
"statusbar-text",
- _("Statusbar Text"),
- _("The text displayed in the statusbar"),
+ "Statusbar Text",
+ "The text displayed in the statusbar",
"",
G_PARAM_READWRITE));
PROP_SETTINGS,
g_param_spec_object (
"settings",
- _("Settings"),
- _("The associated settings"),
+ "Settings",
+ "The associated settings",
MIDORI_TYPE_WEB_SETTINGS,
G_PARAM_READWRITE));
}