[Pidgin] #4017: Resizable-scrollable smiley window

Pidgin trac at pidgin.im
Wed May 14 12:19:48 EDT 2008


#4017: Resizable-scrollable smiley window
---------------------------+------------------------------------------------
  Reporter:  Twain28       |       Owner:  sadrul              
      Type:  patch         |      Status:  closed              
  Priority:  minor         |   Milestone:                      
 Component:  pidgin (gtk)  |     Version:  2.2.2               
Resolution:  fixed         |    Keywords:  resize scroll smiley
   Pending:  0             |  
---------------------------+------------------------------------------------
Comment (by Twain28):

 Yet another update: I discovered how to set a custom size for the smiley
 window. Simply editing
 {{{
 gtk_widget_set_size_request(scrolled, xxx, xxx);
 }}}
 where xxx are the sizes in pixels you want your window to be....yet the
 tweak has a side-effect: applying it to the code as it is SIMPLY solves
 the resizable/scrollable issue I was having on win....but, to actually
 manage to RESIZE the smiley window, you need to apply also the
 {{{
 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW (scrolled),
                         GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
 }}}
 modification above hinted....yet, using sadrul's words, if we do this
 change "GTK+ miscalculates the required size, and erronously makes one or
 both scrollbars visible (sometimes)."....I was actually wondering....could
 the cause of that have been my previous line to set a custom size for the
 smiley window (removed in the official commit)? (I'm talking of the code
 below)
 {{{
 gtk_window_set_default_size(GTK_WINDOW(dialog), 300, 290);
 }}}

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


More information about the Tracker mailing list