diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-14 07:57:24 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-14 07:57:24 -0400 |
| commit | 9aacd55d58e3df91ca6490fbc70e4343cf1948d4 (patch) | |
| tree | 3ac47ad83e3f44d6bae26880b22ff2fec0f0bd5c /redo/container_unix.c | |
| parent | 38772a1a4ab9f9ebf26d6d5726266418ba57f0b7 (diff) | |
Removed the preferred width/height calls from the custom GTK+ container; we aren't really going to use them.
Diffstat (limited to 'redo/container_unix.c')
| -rw-r--r-- | redo/container_unix.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/redo/container_unix.c b/redo/container_unix.c index 10a33c3..b478ee3 100644 --- a/redo/container_unix.c +++ b/redo/container_unix.c @@ -60,32 +60,6 @@ static void goContainer_size_allocate(GtkWidget *widget, GtkAllocation *allocati containerResizing(GOCONTAINER(widget)->gocontainer, allocation); } -/* -static void goContainer_get_preferred_width(GtkWidget *widget, gint *min, gint *nat) -{ - if (GOCONTAINER(widget)->child != NULL) { - gtk_widget_get_preferred_width(GOCONTAINER(widget)->child, min, nat); - return; - } - if (min != NULL) - *min = 0; - if (nat != NULL) - *nat = 0; -} - -static void goContainer_get_preferred_height(GtkWidget *widget, gint *min, gint *nat) -{ - if (GOCONTAINER(widget)->child != NULL) { - gtk_widget_get_preferred_height(GOCONTAINER(widget)->child, min, nat); - return; - } - if (min != NULL) - *min = 0; - if (nat != NULL) - *nat = 0; -} -*/ - struct forall { GtkCallback callback; gpointer data; @@ -112,8 +86,6 @@ static void goContainer_class_init(goContainerClass *class) G_OBJECT_CLASS(class)->dispose = goContainer_dispose; G_OBJECT_CLASS(class)->finalize = goContainer_finalize; GTK_WIDGET_CLASS(class)->size_allocate = goContainer_size_allocate; -// GTK_WIDGET_CLASS(class)->get_preferred_width = goContainer_get_preferred_width; -// GTK_WIDGET_CLASS(class)->get_preferred_height = goContainer_get_preferred_height; GTK_CONTAINER_CLASS(class)->add = goContainer_add; GTK_CONTAINER_CLASS(class)->remove = goContainer_remove; GTK_CONTAINER_CLASS(class)->forall = goContainer_forall; |
