[gnumeric] revert accidentally committed patch
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] revert accidentally committed patch
- Date: Fri, 30 Sep 2011 05:58:09 +0000 (UTC)
commit c9b17bf65ee30463c286bf1b97264a07ad986e05
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Thu Sep 29 23:56:54 2011 -0600
revert accidentally committed patch
src/widgets/gnm-notebook.c | 40 ----------------------------------------
1 files changed, 0 insertions(+), 40 deletions(-)
---
diff --git a/src/widgets/gnm-notebook.c b/src/widgets/gnm-notebook.c
index 3ad366c..b4f1e36 100644
--- a/src/widgets/gnm-notebook.c
+++ b/src/widgets/gnm-notebook.c
@@ -1,4 +1,3 @@
-/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/**
* gnm-notebook.c: Implements a button-only notebook.
*
@@ -71,40 +70,6 @@ gnm_notebook_size_allocate (GtkWidget *widget,
}
static void
-gnm_notebook_adjust_this_tab_appearance (GnmNotebook *nb, GtkWidget *page, gboolean active)
-{
- GtkWidget *tab;
-
- if (page == NULL)
- return;
-
- tab = gtk_notebook_get_tab_label
- (GTK_NOTEBOOK (nb), page);
- gtk_entry_set_has_frame (GTK_ENTRY (tab), active);
-}
-
-static void
-gnm_notebook_adjust_tab_appearance (GnmNotebook *nb, GtkWidget *old, GtkWidget *new)
-{
- gnm_notebook_adjust_this_tab_appearance (nb, old, FALSE);
- gnm_notebook_adjust_this_tab_appearance (nb, new, TRUE);
-}
-
-static void
-gnm_notebook_switch_page_cb (GtkNotebook *notebook,
- GtkWidget *page,
- G_GNUC_UNUSED guint page_num,
- GnmNotebook *nb)
-{
- GtkWidget *current_page = NULL;
- gint current = gtk_notebook_get_current_page (notebook);
-
- if (current != -1)
- current_page = gtk_notebook_get_nth_page (notebook, current);
- gnm_notebook_adjust_tab_appearance (nb, current_page, page);
-}
-
-static void
gnm_notebook_class_init (GtkWidgetClass *klass)
{
gnm_notebook_parent_class = g_type_class_peek (GTK_TYPE_NOTEBOOK);
@@ -132,11 +97,6 @@ gnm_notebook_init (GnmNotebook *notebook)
gtk_style_context_add_provider (context,
GTK_STYLE_PROVIDER (css),
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
-
- g_signal_connect (G_OBJECT (notebook), "switch-page",
- (GCallback) gnm_notebook_switch_page_cb,
- notebook);
-
g_object_unref (css);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]