Patch for chat_window.c

penguin365 <[email protected]> Fri, 27 Dec 2002 23:51:38 -0600
Newsgroups gmane.network.everybuddy.devel,gmane.network.everybuddy.user
Message-ID <[email protected]>
This patch causes Everybuddy to refocus and raise the chat window when the user double clicks on a new or already open contact or account name.

This is the direct output for the diff program.  If someone where to show me how to generate a correct patch file, that would be great also.


Lee Leahu


-- 
+-----------------------------------------------------------------------------+
| penguin365                                                                  |
+-----------------------------------------------------------------------------+
| USER, n.:                                                                   |
|         The word computer professionals use when they mean "idiot".         |
|                 -- Dave Barry, "Claw Your Way to the Top"                   |
+-----------------------------------------------------------------------------+
chat_window.patch (application/octet-stream, 2 KB)
2172c2172
<       gtk_eb_html_add(EXT_GTK_TEXT(remote_contact->chatwindow->chat), 
---
>       gtk_eb_html_add(EXT_GTK_TEXT(remote_contact->chatwindow->chat),
2215c2215,2218
<       gtk_window_set_focus (GTK_WINDOW
---
> 
>           gdk_window_raise(remote_contact->chatwindow->window->window);
> 
> 	gtk_window_set_focus (GTK_WINDOW
2225c2228
<   
---
> 
2262c2265
< 	  if (do_restore_last_conv) 
---
> 	  if (do_restore_last_conv)
2266c2269
< 	      eb_restore_last_conv(buff,remote_contact->chatwindow);	
---
> 	      eb_restore_last_conv(buff,remote_contact->chatwindow);
2267a2271,2277
> 
>           gdk_window_raise(remote_contact->chatwindow->window->window);
> 
> 	gtk_window_set_focus (GTK_WINDOW
> 			    (remote_contact->chatwindow->window),
> 			    remote_contact->chatwindow->entry);
> 
2269c2279
<       else /* Did they get denied because they're in the Unknown group? */
---
>       else  /* Did they get denied because they're in the Unknown group? */
2271a2282,2290
>     else
>     {
>         gdk_window_raise(remote_contact->chatwindow->window->window);
> 
> 	gtk_window_set_focus (GTK_WINDOW
> 			    (remote_contact->chatwindow->window),
> 			    remote_contact->chatwindow->entry);
> 
>     }
2274,2275c2293,2294
< 	
<   if (remote_contact->chatwindow->notebook != NULL) 
---
> 
>   if (remote_contact->chatwindow->notebook != NULL)
2281c2300
<     set_tab_normal(GTK_NOTEBOOK(remote_contact->chatwindow->notebook), 
---
>     set_tab_normal(GTK_NOTEBOOK(remote_contact->chatwindow->notebook),
2283c2302
<     gtk_notebook_set_page(GTK_NOTEBOOK(remote_contact->chatwindow->notebook), 
---
>     gtk_notebook_set_page(GTK_NOTEBOOK(remote_contact->chatwindow->notebook),
2285c2304
< 	    
---
> 
2290c2309
< 	
---
> 
2293c2312
< 	
---
> 
2296c2315
< 	if(ea == NULL || ea->account_contact == NULL || 
---
> 	if(ea == NULL || ea->account_contact == NULL ||
2301c2320
< 	eb_log_message(ea->account_contact->chatwindow->fp, ea->handle, 
---
> 	eb_log_message(ea->account_contact->chatwindow->fp, ea->handle,