Branch: Tag:

2010-09-19

2010-09-19 20:12:25 by Marcus Comstedt <marcus@mc.pp.se>

Removed the pointless length argument from set_text(). Instead, use sprintf() if multiple arguments are given, as suggested by Marc Dirix.

Rev: src/post_modules/GTK2/pgtk.h:1.22
Rev: src/post_modules/GTK2/source/gtkclipboard.pre:1.8
Rev: src/post_modules/GTK2/source/gtktextbuffer.pre:1.14
Rev: src/post_modules/GTK2/source/support.c:1.28

65:   void clear();   //! Clears the contents of the clipboard.    - void set_text(string text, int len); + void set_text(string text, mixed ... fmt)   //! Sets the contents of the clipboard to the given string. -  + //! If multiple arguments are supplied, sprintf() is called implicitly. + { +  pgtk2_get_string_arg_with_sprintf(args); +  pgtk2_verify_inited(); +  gtk_clipboard_set_text( GTK_CLIPBOARD(THIS->obj),Pike_sp[-1].u.string->str,Pike_sp[-1].u.string->len); +  pgtk2_return_this(1); + }      require gtk26;   void set_image(GDK2.Pixbuf pixbuf);