[libgda] Replaced GtkNotebookPage with GtkWidget
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Replaced GtkNotebookPage with GtkWidget
- Date: Sun, 17 Oct 2010 19:23:59 +0000 (UTC)
commit be9abbb38511701a1e3add7e11ac07533c45a55a
Author: Vivien Malerba <malerba gnome-db org>
Date: Sun Oct 17 14:59:30 2010 +0200
Replaced GtkNotebookPage with GtkWidget
control-center/main.c | 2 +-
testing/gdaui-test-data-entries.c | 4 ++--
.../data-manager/data-manager-perspective.c | 12 ++++++------
tools/browser/query-exec/query-exec-perspective.c | 12 ++++++------
.../schema-browser/schema-browser-perspective.c | 4 ++--
5 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/control-center/main.c b/control-center/main.c
index 372dcd0..2e35740 100644
--- a/control-center/main.c
+++ b/control-center/main.c
@@ -387,7 +387,7 @@ dsn_selection_changed_cb (GdauiRawGrid *dbrawgrid, gboolean row_selected, G_GNUC
}
static void
-main_nb_page_switched_cb (G_GNUC_UNUSED GtkNotebook *notebook, G_GNUC_UNUSED GtkNotebookPage *page, guint page_num, G_GNUC_UNUSED gpointer data)
+main_nb_page_switched_cb (G_GNUC_UNUSED GtkNotebook *notebook, G_GNUC_UNUSED GtkWidget *page, guint page_num, G_GNUC_UNUSED gpointer data)
{
gboolean show;
GtkAction *action;
diff --git a/testing/gdaui-test-data-entries.c b/testing/gdaui-test-data-entries.c
index 6d05b4f..a312a75 100644
--- a/testing/gdaui-test-data-entries.c
+++ b/testing/gdaui-test-data-entries.c
@@ -461,7 +461,7 @@ build_test_for_plugin_struct (GdauiPlugin *plugin)
return table;
}
-static void plugin_nb_page_changed_cb (GtkNotebook *nb, GtkNotebookPage *page, gint pageno, GtkWidget *table);
+static void plugin_nb_page_changed_cb (GtkNotebook *nb, GtkWidget *page, gint pageno, GtkWidget *table);
static void vbox_destroyed_cb (GtkWidget *widget, gpointer data);
static void
create_plugin_nb (GtkWidget *table, GdauiPlugin *plugin)
@@ -543,7 +543,7 @@ static GtkWidget *build_form_test_for_gtype (GdaDataHandler *dh, GType type, con
static GtkWidget *build_grid_test_for_gtype (GdaDataHandler *dh, GType type, const gchar *plugin_name);
static void
-plugin_nb_page_changed_cb (GtkNotebook *nb, G_GNUC_UNUSED GtkNotebookPage *page, gint pageno,
+plugin_nb_page_changed_cb (GtkNotebook *nb, G_GNUC_UNUSED GtkWidget *page, gint pageno,
G_GNUC_UNUSED GtkWidget *table)
{
GtkWidget *vbox;
diff --git a/tools/browser/data-manager/data-manager-perspective.c b/tools/browser/data-manager/data-manager-perspective.c
index 1cf6525..22c6739 100644
--- a/tools/browser/data-manager/data-manager-perspective.c
+++ b/tools/browser/data-manager/data-manager-perspective.c
@@ -131,11 +131,11 @@ data_manager_perspective_init (DataManagerPerspective *perspective)
static void fav_selection_changed_cb (GtkWidget *widget, gint fav_id, BrowserFavoritesType fav_type,
const gchar *selection, DataManagerPerspective *perspective);
-static void nb_switch_page_cb (GtkNotebook *nb, GtkNotebookPage *page, gint page_num,
+static void nb_switch_page_cb (GtkNotebook *nb, GtkWidget *page, gint page_num,
DataManagerPerspective *perspective);
-static void nb_page_removed_cb (GtkNotebook *nb, GtkNotebookPage *page, gint page_num,
+static void nb_page_removed_cb (GtkNotebook *nb, GtkWidget *page, gint page_num,
DataManagerPerspective *perspective);
-static void nb_page_added_cb (GtkNotebook *nb, GtkNotebookPage *page, gint page_num,
+static void nb_page_added_cb (GtkNotebook *nb, GtkWidget *page, gint page_num,
DataManagerPerspective *perspective);
static void close_button_clicked_cb (GtkWidget *wid, GtkWidget *page_widget);
@@ -296,7 +296,7 @@ fav_selection_changed_cb (G_GNUC_UNUSED GtkWidget *widget, gint fav_id, BrowserF
}
static void
-nb_switch_page_cb (GtkNotebook *nb, G_GNUC_UNUSED GtkNotebookPage *page, gint page_num,
+nb_switch_page_cb (GtkNotebook *nb, G_GNUC_UNUSED GtkWidget *page, gint page_num,
DataManagerPerspective *perspective)
{
GtkWidget *page_contents;
@@ -316,7 +316,7 @@ nb_switch_page_cb (GtkNotebook *nb, G_GNUC_UNUSED GtkNotebookPage *page, gint pa
}
static void
-nb_page_removed_cb (GtkNotebook *nb, G_GNUC_UNUSED GtkNotebookPage *page, G_GNUC_UNUSED gint page_num,
+nb_page_removed_cb (GtkNotebook *nb, G_GNUC_UNUSED GtkWidget *page, G_GNUC_UNUSED gint page_num,
DataManagerPerspective *perspective)
{
if (gtk_notebook_get_n_pages (nb) == 0) {
@@ -328,7 +328,7 @@ nb_page_removed_cb (GtkNotebook *nb, G_GNUC_UNUSED GtkNotebookPage *page, G_GNUC
}
static void
-nb_page_added_cb (G_GNUC_UNUSED GtkNotebook *nb, G_GNUC_UNUSED GtkNotebookPage *page,
+nb_page_added_cb (G_GNUC_UNUSED GtkNotebook *nb, G_GNUC_UNUSED GtkWidget *page,
G_GNUC_UNUSED gint page_num, DataManagerPerspective *perspective)
{
adapt_notebook_for_fullscreen (perspective);
diff --git a/tools/browser/query-exec/query-exec-perspective.c b/tools/browser/query-exec/query-exec-perspective.c
index f8d8066..d8d8388 100644
--- a/tools/browser/query-exec/query-exec-perspective.c
+++ b/tools/browser/query-exec/query-exec-perspective.c
@@ -138,11 +138,11 @@ query_exec_perspective_init (QueryExecPerspective *perspective)
static void fav_selection_changed_cb (GtkWidget *widget, gint fav_id, BrowserFavoritesType fav_type,
const gchar *selection, QueryExecPerspective *perspective);
-static void nb_switch_page_cb (GtkNotebook *nb, GtkNotebookPage *page, gint page_num,
+static void nb_switch_page_cb (GtkNotebook *nb, GtkWidget *page, gint page_num,
QueryExecPerspective *perspective);
-static void nb_page_removed_cb (GtkNotebook *nb, GtkNotebookPage *page, gint page_num,
+static void nb_page_removed_cb (GtkNotebook *nb, GtkWidget *page, gint page_num,
QueryExecPerspective *perspective);
-static void nb_page_added_cb (GtkNotebook *nb, GtkNotebookPage *page, gint page_num,
+static void nb_page_added_cb (GtkNotebook *nb, GtkWidget *page, gint page_num,
QueryExecPerspective *perspective);
static void close_button_clicked_cb (GtkWidget *wid, GtkWidget *page_widget);
static void fullscreen_changed_cb (BrowserWindow *bwin, gboolean fullscreen, QueryExecPerspective *perspective);
@@ -245,7 +245,7 @@ fav_selection_changed_cb (G_GNUC_UNUSED GtkWidget *widget, G_GNUC_UNUSED gint fa
}
static void
-nb_switch_page_cb (GtkNotebook *nb, G_GNUC_UNUSED GtkNotebookPage *page, gint page_num,
+nb_switch_page_cb (GtkNotebook *nb, G_GNUC_UNUSED GtkWidget *page, gint page_num,
QueryExecPerspective *perspective)
{
GtkWidget *page_contents;
@@ -265,7 +265,7 @@ nb_switch_page_cb (GtkNotebook *nb, G_GNUC_UNUSED GtkNotebookPage *page, gint pa
}
static void
-nb_page_removed_cb (GtkNotebook *nb, G_GNUC_UNUSED GtkNotebookPage *page, G_GNUC_UNUSED gint page_num,
+nb_page_removed_cb (GtkNotebook *nb, G_GNUC_UNUSED GtkWidget *page, G_GNUC_UNUSED gint page_num,
QueryExecPerspective *perspective)
{
if (gtk_notebook_get_n_pages (nb) == 0) {
@@ -277,7 +277,7 @@ nb_page_removed_cb (GtkNotebook *nb, G_GNUC_UNUSED GtkNotebookPage *page, G_GNUC
}
static void
-nb_page_added_cb (G_GNUC_UNUSED GtkNotebook *nb, G_GNUC_UNUSED GtkNotebookPage *page,
+nb_page_added_cb (G_GNUC_UNUSED GtkNotebook *nb, G_GNUC_UNUSED GtkWidget *page,
G_GNUC_UNUSED gint page_num, QueryExecPerspective *perspective)
{
adapt_notebook_for_fullscreen (perspective);
diff --git a/tools/browser/schema-browser/schema-browser-perspective.c b/tools/browser/schema-browser/schema-browser-perspective.c
index 341d1ab..62e4ccb 100644
--- a/tools/browser/schema-browser/schema-browser-perspective.c
+++ b/tools/browser/schema-browser/schema-browser-perspective.c
@@ -122,7 +122,7 @@ static void fav_selection_changed_cb (GtkWidget *widget, gint fav_id, BrowserFav
const gchar *selection, SchemaBrowserPerspective *bpers);
static void objects_index_selection_changed_cb (GtkWidget *widget, BrowserFavoritesType fav_type,
const gchar *selection, SchemaBrowserPerspective *bpers);
-static void nb_switch_page_cb (GtkNotebook *nb, GtkNotebookPage *page, gint page_num,
+static void nb_switch_page_cb (GtkNotebook *nb, GtkWidget *page, gint page_num,
SchemaBrowserPerspective *perspective);
/**
* schema_browser_perspective_new
@@ -182,7 +182,7 @@ schema_browser_perspective_new (BrowserWindow *bwin)
}
static void
-nb_switch_page_cb (GtkNotebook *nb, G_GNUC_UNUSED GtkNotebookPage *page, gint page_num,
+nb_switch_page_cb (GtkNotebook *nb, G_GNUC_UNUSED GtkWidget *page, gint page_num,
SchemaBrowserPerspective *perspective)
{
GtkWidget *page_contents;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]