After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 305117 - gtk_container_set_border_width (GtkContainer *container, GtkBorder *border)
gtk_container_set_border_width (GtkContainer *container, GtkBorder *border)
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: .General
2.6.x
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2005-05-22 18:09 UTC by Jaap A. Haitsma
Modified: 2005-05-22 21:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jaap A. Haitsma 2005-05-22 18:09:52 UTC
Currently GTKContainer has the following method,

void        gtk_container_set_border_width  (GtkContainer *container,
                                             guint border_width);

It would be more sensible to use GtkBorder instead on guint because GtkBorder is
already there and GtkBorder is more flexible because you can specify the border
at each side. When this is possible. Adding this would make fixing this bug
303850 easier
Comment 1 Owen Taylor 2005-05-22 19:07:50 UTC
Not a compatible change. 

(gtk_container_set_border_width() preceeded GtkBorder by 5 years or so)
Comment 2 Jaap A. Haitsma 2005-05-22 19:18:11 UTC
I know it's not compatible, because of the name clash. 
can't we just call it gtk_container_set_border and 
maybe make gtk_container_set_border_width deprecated in gtk+ 2.8

Reopen??
Comment 3 Owen Taylor 2005-05-22 21:00:21 UTC
It would require changes in *every* GtkContainer to support; and remember
container's can be defined outside of GTK+. So, there's no way it could
be reliably supported.

I think we just have to consider GtkAlignment and gtk_alignment_set_padding()
the way to do this.