[Pidgin] #5855: Add context menu alternative to add received custom smiley

Pidgin trac at pidgin.im
Tue May 20 05:54:06 EDT 2008


#5855: Add context menu alternative to add received custom smiley
---------------------------+------------------------------------------------
  Reporter:  malu          |       Owner:  sadrul            
      Type:  patch         |      Status:  assigned          
  Priority:  minor         |   Milestone:                    
 Component:  pidgin (gtk)  |     Version:                    
Resolution:                |    Keywords:  custom smileys add
   Pending:  0             |  
---------------------------+------------------------------------------------
Comment (by malu):

 Replying to [comment:1 sadrul]:
 > I think it'll be really good if we can use pidgin_smiley_edit instead.
 For example, the code could look like:
 > {{{
 >     editor = pidgin_smiley_edit(imhtml, NULL);   /* Edit a new smiley */
 >     pidgin_smiley_editor_set_image(editor, ...);
 >     pidgin_smiley_editor_set_shortcut(editor, ...);
 > }}}
 > Some API changes+additions will be necessary, of course, and this is the
 perfect time for it!
 >
 > Thoughts?

 That seems like a good idea.
 I suppose the "editor" would be able to save from a GdkPixbuf in addition
 to a filename (as it gets now from the file selector).
 I haven't quite descided if I should pass a GdkPixbuf or the raw data to
 the "set_image" method.
 "pidgin_smiley_editor_set_data" could take the image data provided from
 gdk_pixbuf_save_buffer as it is now. Then it would merely call
 purple_smiley_set_data. But on the other hand we want the edit window to
 set the image button to the smiley image...
 As it is now, we always get a GdkPixbuf from the GtkIMHtmlImage, but I
 would like to be able to handle the original smiley image, maybe that
 would be possible later using webkit?

-- 
Ticket URL: <http://developer.pidgin.im/ticket/5855#comment:2>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list