Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 472578
Collapse All | Expand All

(-)file_not_specified_in_diff (-23 / +28 lines)
Line  Link Here
0
-- hexchat-2.9.5/src/fe-gtk/maingui.c
0
++ hexchat-2.9.5/src/fe-gtk/maingui.c
Lines 2263-2299 Link Here
2263
	int word_type, start, end;
2263
	int word_type, start, end;
2264
	char *tmp;
2264
	char *tmp;
2265
2265
2266
	if (word == NULL)
2266
	if (word)
2267
	{
2267
	{
2268
		if (even->button == 1)		/* left button */
2268
		word_type = mg_word_check (xtext, word);
2269
			mg_focus (sess);
2269
		url_last (&start, &end); 
2270
		return;
2271
	}
2270
	}
2272
2271
2273
	word_type = mg_word_check (xtext, word);
2272
	if (even->button == 1)      /* left button */
2274
	url_last (&start, &end);
2275
2276
	if (even->button == 1 && (even->state & 13) == prefs.hex_gui_url_mod)
2277
	{
2273
	{
2278
		switch (word_type)
2274
	  if (word == NULL)
2279
		{
2275
	  {
2280
		case WORD_URL:
2276
	  	mg_focus (sess);
2281
		case WORD_HOST:
2277
	  	return;
2282
			word[end] = 0;
2278
	  }
2283
			word += start;
2279
2284
			fe_open_url (word);
2280
	  if ((even->state & 13) == prefs.hex_gui_url_mod)
2285
		}
2281
	  {
2286
		return;
2282
	    switch (word_type) 
2283
	    {
2284
	    case WORD_URL:
2285
	    case WORD_HOST:
2286
	      fe_open_url (word); 
2287
	    }
2288
	  }
2289
	  return;
2287
	}
2290
	}
2288
2291
2289
	if (even->button == 2)
2292
	if (even->button == 2)
2290
	{
2293
	{
2291
		if (sess->type == SESS_DIALOG)
2294
	  if (sess->type == SESS_DIALOG)
2292
			menu_middlemenu (sess, even);
2295
	  	menu_middlemenu (sess, even);
2293
		else if (even->type == GDK_2BUTTON_PRESS)
2296
	  else if (even->type == GDK_2BUTTON_PRESS)
2294
			userlist_select (sess, word);
2297
	  	userlist_select (sess, word);
2295
		return;
2298
	  return;
2296
	}
2299
	}
2300
	if (word == NULL)
2301
	  return;
2297
2302
2298
	switch (word_type)
2303
	switch (word_type)
2299
	{
2304
	{

Return to bug 472578