diff finch/libgnt/gntwm.c @ 19151:700fe77a79b3

disapproval of revision '28530bc53fbe271f49ca1baa55938a067f20aed8'
author Eric Polino <aluink@pidgin.im>
date Wed, 11 Jul 2007 19:51:48 +0000
parents 9ba4c42926bd
children 58743fae0db2
line wrap: on
line diff
--- a/finch/libgnt/gntwm.c	Wed Jul 11 19:40:49 2007 +0000
+++ b/finch/libgnt/gntwm.c	Wed Jul 11 19:51:48 2007 +0000
@@ -735,7 +735,6 @@
 			print = ch;
 #ifndef NO_WIDECHAR
 			if (wch.chars[0] > 255) {
-				/* XXX This lines throws a warning, can we quiet it? */
 				snprintf(unicode, sizeof(unicode), "&#x%x;", wch.chars[0]);
 				print = unicode;
 			}
@@ -804,9 +803,6 @@
 	if (wm->_list.window)
 		return TRUE;
 
-	if(!wm->cws->ordered)
-		return FALSE;
-
 	shift_window(wm, wm->cws->ordered->data, -1);
 	return TRUE;
 }
@@ -815,13 +811,9 @@
 shift_right(GntBindable *bindable, GList *null)
 {
 	GntWM *wm = GNT_WM(bindable);
-	
 	if (wm->_list.window)
 		return TRUE;
 
-	if(!wm->cws->ordered)
-		return FALSE;
-
 	shift_window(wm, wm->cws->ordered->data, 1);
 	return TRUE;
 }
@@ -1154,13 +1146,7 @@
 help_for_window(GntBindable *bindable, GList *null)
 {
 	GntWM *wm = GNT_WM(bindable);
-	GntWidget *widget;
-	
-	
-	if(!wm->cws->ordered)
-		return FALSE;
-	
-	widget = wm->cws->ordered->data;
+	GntWidget *widget = wm->cws->ordered->data;
 
 	return help_for_bindable(wm,GNT_BINDABLE(widget));
 }
@@ -1961,8 +1947,7 @@
 
 	if (!node)
 		return;
-
-	/* XXX Should there be a check before access to 'data' to make sure 'ordered' isn't NULL? */
+	
 	if (widget != wm->_list.window && !GNT_IS_MENU(widget) &&
 				wm->cws->ordered->data != widget) {
 		GntWidget *w = wm->cws->ordered->data;
@@ -2024,7 +2009,6 @@
 	GntWS *ws = gnt_wm_widget_find_workspace(wm, widget);
 	if (wm->cws != ws)
 		gnt_wm_switch_workspace(wm, g_list_index(wm->workspaces, ws));
-	/* XXX Should there be a check before access to 'data' to make sure 'ordered' isn't NULL? */
 	if (widget != wm->cws->ordered->data) {
 		GntWidget *wid = wm->cws->ordered->data;
 		wm->cws->ordered = g_list_bring_to_front(wm->cws->ordered, widget);