*** empty log message ***
git-svn-id: file:///Users/arjan/backup/gaphor/trunk/gaphor@286 a8418922-720d-0410-834f-a69b97ada669
This commit is contained in:
parent
5fc16a7fde
commit
ff821a798b
@ -212,6 +212,7 @@ class ClassItem(NamedItem, diacanvas.CanvasGroupable):
|
||||
self._name.set_font_description(pango.FontDescription(self.FONT_ABSTRACT))
|
||||
else:
|
||||
self._name.set_font_description(pango.FontDescription(self.FONT))
|
||||
self.request_update()
|
||||
|
||||
def on_update(self, affine):
|
||||
"""Overrides update callback.
|
||||
|
@ -124,7 +124,7 @@ class MainWindow(AbstractWindow):
|
||||
view.connect_after('event-after', self.on_view_event)
|
||||
view.connect('row-activated', self.on_view_row_activated)
|
||||
view.connect_after('cursor-changed', self.on_view_cursor_changed)
|
||||
view.set_size_request(200, 200)
|
||||
#view.set_size_request(200, 200)
|
||||
|
||||
#scrolled_window.show_all()
|
||||
#ns_paned = gtk.VPaned()
|
||||
@ -156,7 +156,7 @@ class MainWindow(AbstractWindow):
|
||||
contents=paned)
|
||||
#contents=scrolled_window)
|
||||
wrapbox = self.menu_factory.create_wrapbox(self.wrapbox)
|
||||
wrapbox.set_size_request(-1, 120)
|
||||
wrapbox.set_size_request(160, 120)
|
||||
#wrapbox.set_aspect_ratio(1/256)
|
||||
vbox.pack_start(wrapbox, expand=False)
|
||||
wrapbox.show()
|
||||
|
@ -233,10 +233,10 @@ gtk_hwrap_box_size_request (GtkWidget *widget,
|
||||
|
||||
requisition->width += GTK_CONTAINER (wbox)->border_width * 2; /*<h2v-skip>*/
|
||||
requisition->height += GTK_CONTAINER (wbox)->border_width * 2; /*<h2v-skip>*/
|
||||
/* g_print ("choosen: width %d, height %d\n",
|
||||
g_print ("choosen: width %d, height %d\n",
|
||||
requisition->width,
|
||||
requisition->height);
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
static GSList*
|
||||
@ -589,14 +589,19 @@ gtk_hwrap_box_size_allocate (GtkWidget *widget,
|
||||
{
|
||||
GtkWrapBox *wbox = GTK_WRAP_BOX (widget);
|
||||
GtkAllocation area;
|
||||
GtkRequisition req; //AJM
|
||||
gint border = GTK_CONTAINER (wbox)->border_width; /*<h2v-skip>*/
|
||||
|
||||
gtk_widget_size_request (widget, &req); //AJM
|
||||
|
||||
widget->allocation = *allocation;
|
||||
area.x = allocation->x + border;
|
||||
area.y = allocation->y + border;
|
||||
area.width = MAX (1, (gint) allocation->width - border * 2);
|
||||
area.height = MAX (1, (gint) allocation->height - border * 2);
|
||||
|
||||
//AJM area.width = MAX (1, (gint) allocation->width - border * 2);
|
||||
//AJM area.height = MAX (1, (gint) allocation->height - border * 2);
|
||||
area.width = MAX (1, req.width - border * 2);
|
||||
area.height = MAX (1, req.height - border * 2);
|
||||
|
||||
/*<h2v-off>*/
|
||||
/* g_print ("got: width %d, height %d\n",
|
||||
allocation->width,
|
||||
|
Loading…
x
Reference in New Issue
Block a user