aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-03-01 02:34:48 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-03-01 02:34:48 +0800
commit30268048c1a62294bfe663d95830eeffb594aaf4 (patch)
tree50bf47aa2590b520a36c01089619c3a3e69441ac /src
parentf622f8192547ed09c59f09416a4b532c5541a372 (diff)
downloadgsoc2013-epiphany-30268048c1a62294bfe663d95830eeffb594aaf4.tar
gsoc2013-epiphany-30268048c1a62294bfe663d95830eeffb594aaf4.tar.gz
gsoc2013-epiphany-30268048c1a62294bfe663d95830eeffb594aaf4.tar.bz2
gsoc2013-epiphany-30268048c1a62294bfe663d95830eeffb594aaf4.tar.lz
gsoc2013-epiphany-30268048c1a62294bfe663d95830eeffb594aaf4.tar.xz
gsoc2013-epiphany-30268048c1a62294bfe663d95830eeffb594aaf4.tar.zst
gsoc2013-epiphany-30268048c1a62294bfe663d95830eeffb594aaf4.zip
Remove old toolbar editor ui
2003-02-28 Marco Pesenti Gritti <marco@it.gnome.org> * data/glade/Makefile.am: * data/glade/toolbar-editor.glade: Remove old toolbar editor ui * lib/ephy-autocompletion.c: (ephy_autocompletion_update_matches): Remove an obsolete FIXME * lib/ephy-gui.c: * lib/ephy-gui.h: Remove some functions that was used only in galeon bookmarks * lib/widgets/ephy-autocompletion-window.c: (hack_tree_view_move_selection), (ephy_autocompletion_window_key_press_hack): * lib/widgets/ephy-location-entry.c: (ephy_location_entry_autocompletion_window_url_selected_cb): Up on the top border of the autocompl window goes back to the entry * src/appearance-prefs.c: (setup_font_menu): Free fonts list * src/ephy-tab.c: (ephy_tab_parent_set_cb), (ephy_tab_set_visibility): * src/window-commands.c: (window_cmd_tabs_move_left), (window_cmd_tabs_move_right): Implement tabs moving
Diffstat (limited to 'src')
-rwxr-xr-xsrc/appearance-prefs.c3
-rw-r--r--src/ephy-tab.c7
-rw-r--r--src/window-commands.c28
3 files changed, 31 insertions, 7 deletions
diff --git a/src/appearance-prefs.c b/src/appearance-prefs.c
index 72d275f35..e19e95c79 100755
--- a/src/appearance-prefs.c
+++ b/src/appearance-prefs.c
@@ -220,7 +220,8 @@ setup_font_menu (AppearancePrefs *dialog,
g_free (default_font);
- /* FIXME free the list */
+ g_list_foreach (fonts, (GFunc)g_free, NULL);
+ g_list_free (fonts);
}
static void
diff --git a/src/ephy-tab.c b/src/ephy-tab.c
index 578fe6a75..8a0c20863 100644
--- a/src/ephy-tab.c
+++ b/src/ephy-tab.c
@@ -168,9 +168,6 @@ ephy_tab_parent_set_cb (GtkWidget *widget, GtkWidget *previous_parent,
{
GtkWidget *toplevel;
- /* FIXME maybe we dont need to set the tab parent explicitly
- * anymore with this callback taking care of it */
-
if (widget->parent == NULL) return;
toplevel = gtk_widget_get_toplevel (widget);
@@ -431,12 +428,10 @@ ephy_tab_get_size (EphyTab *tab, int *width, int *height)
static void
ephy_tab_set_visibility (EphyTab *tab,
- gboolean visible)
+ gboolean visible)
{
g_return_if_fail (tab->priv->window != NULL);
- /* FIXME show/hide the tab widget */
-
tab->priv->visibility = visible;
}
diff --git a/src/window-commands.c b/src/window-commands.c
index cec3ba859..c217b3bd4 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -725,11 +725,39 @@ void
window_cmd_tabs_move_left (EggAction *action,
EphyWindow *window)
{
+ GtkWidget *notebook;
+ int page;
+
+ notebook = ephy_window_get_notebook (window);
+ page = gtk_notebook_get_current_page (GTK_NOTEBOOK (notebook));
+
+ if (page > 0)
+ {
+ GtkWidget *child;
+
+ child = gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), page);
+ gtk_notebook_reorder_child (GTK_NOTEBOOK (notebook), child, page - 1);
+ }
}
void window_cmd_tabs_move_right (EggAction *action,
EphyWindow *window)
{
+ GtkWidget *notebook;
+ int page;
+ int last_page;
+
+ notebook = ephy_window_get_notebook (window);
+ page = gtk_notebook_get_current_page (GTK_NOTEBOOK (notebook));
+ last_page = gtk_notebook_get_n_pages (GTK_NOTEBOOK (notebook)) - 1;
+
+ if (page != last_page)
+ {
+ GtkWidget *child;
+
+ child = gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), page);
+ gtk_notebook_reorder_child (GTK_NOTEBOOK (notebook), child, page + 1);
+ }
}
void