aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2004-10-08 20:18:58 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-10-08 20:18:58 +0800
commit244b0d64db282670ab2f0d6baa49366708ad26e8 (patch)
tree1c6f8b3352d93081b40dfa2adfcdbb155e748ee1 /lib
parent38fd32a8c0541a959537161ac7dd8737a0c86b7b (diff)
downloadgsoc2013-epiphany-244b0d64db282670ab2f0d6baa49366708ad26e8.tar
gsoc2013-epiphany-244b0d64db282670ab2f0d6baa49366708ad26e8.tar.gz
gsoc2013-epiphany-244b0d64db282670ab2f0d6baa49366708ad26e8.tar.bz2
gsoc2013-epiphany-244b0d64db282670ab2f0d6baa49366708ad26e8.tar.lz
gsoc2013-epiphany-244b0d64db282670ab2f0d6baa49366708ad26e8.tar.xz
gsoc2013-epiphany-244b0d64db282670ab2f0d6baa49366708ad26e8.tar.zst
gsoc2013-epiphany-244b0d64db282670ab2f0d6baa49366708ad26e8.zip
reviewed by: Christian Persch <chpe@cvs.gnome.org>
2004-10-08 Marco Pesenti Gritti <marco@gnome.org> reviewed by: Christian Persch <chpe@cvs.gnome.org> * lib/ephy-dialog.c: (setup_default_size): * lib/ephy-state.c: (create_window_node), (ephy_state_add_window): * lib/ephy-state.h: * src/bookmarks/ephy-bookmark-properties.c: (build_ui): * src/bookmarks/ephy-bookmarks-editor.c: (ephy_bookmarks_editor_construct): * src/bookmarks/ephy-new-bookmark.c: (ephy_new_bookmark_construct): * src/ephy-history-window.c: (ephy_history_window_construct): * src/ephy-window.c: (ephy_window_show): * src/pdm-dialog.c: (show_cookies_properties): * src/window-commands.c: (window_cmd_edit_toolbar): Allow to set the default window state to maximize. Default to maximize for the browser window.
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-dialog.c2
-rw-r--r--lib/ephy-state.c7
-rw-r--r--lib/ephy-state.h1
3 files changed, 7 insertions, 3 deletions
diff --git a/lib/ephy-dialog.c b/lib/ephy-dialog.c
index 23bf95dd0..15e5c5aad 100644
--- a/lib/ephy-dialog.c
+++ b/lib/ephy-dialog.c
@@ -1018,7 +1018,7 @@ setup_default_size (EphyDialog *dialog)
dialog->priv->name,
dialog->priv->default_width,
dialog->priv->default_height,
- flags);
+ FALSE, flags);
dialog->priv->has_default_size = TRUE;
}
diff --git a/lib/ephy-state.c b/lib/ephy-state.c
index 5cf37c744..32e4f1c48 100644
--- a/lib/ephy-state.c
+++ b/lib/ephy-state.c
@@ -318,6 +318,7 @@ static EphyNode *
create_window_node (const char *name,
int default_width,
int default_height,
+ gboolean maximize,
EphyStateWindowFlags flags)
{
EphyNode *node;
@@ -333,7 +334,7 @@ create_window_node (const char *name,
g_value_unset (&value);
g_value_init (&value, G_TYPE_BOOLEAN);
- g_value_set_boolean (&value, FALSE);
+ g_value_set_boolean (&value, maximize);
ephy_node_set_property (node, EPHY_NODE_STATE_PROP_MAXIMIZE,
&value);
g_value_unset (&value);
@@ -367,6 +368,7 @@ ephy_state_add_window (GtkWidget *window,
const char *name,
int default_width,
int default_height,
+ gboolean maximize,
EphyStateWindowFlags flags)
{
EphyNode *node;
@@ -376,7 +378,8 @@ ephy_state_add_window (GtkWidget *window,
node = find_by_name (name);
if (node == NULL)
{
- node = create_window_node (name, default_width, default_height, flags);
+ node = create_window_node (name, default_width, default_height,
+ maximize, flags);
}
ephy_state_window_set_size (window, node);
diff --git a/lib/ephy-state.h b/lib/ephy-state.h
index 260c03ba1..f54eb9bc0 100644
--- a/lib/ephy-state.h
+++ b/lib/ephy-state.h
@@ -38,6 +38,7 @@ void ephy_state_add_window (GtkWidget *window,
const char *name,
int default_width,
int default_heigth,
+ gboolean maximize,
EphyStateWindowFlags flags);
void ephy_state_add_paned (GtkWidget *paned,