~ubuntu-branches/ubuntu/saucy/darktable/saucy

« back to all changes in this revision

Viewing changes to src/dtgtk/label.c

  • Committer: Bazaar Package Importer
  • Author(s): David Bremner
  • Date: 2011-07-12 09:36:46 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110712093646-yp9dbxan44dmw15h
Tags: 0.9-1
* New upstream release.
* Remove all patches now upstream; only patch for
  -Wno-error=unused-but-set-variable remains.
* Bump Standards-Version to 3.9.2 (no changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
  layout = gtk_widget_create_pango_layout(widget,NULL);
100
100
  pango_layout_set_font_description(layout,style->font_desc);
101
101
  const gchar *text=gtk_label_get_text(GTK_LABEL(widget));
102
 
  pango_layout_set_text(layout,text,strlen(text));
 
102
  pango_layout_set_text(layout,text,-1);
103
103
  GdkRectangle t= {x,y,x+width,y+height};
104
104
  int pw,ph;
105
105
  pango_layout_get_pixel_size(layout,&pw,&ph);