comparison pidgin/gtkimhtml.c @ 21866:03c950701fac

Move some curly braces around so static analysis tools can properly detect functions without having to preprocess the source
author Stu Tomlinson <stu@nosnilmot.com>
date Tue, 18 Dec 2007 15:56:06 +0000
parents 9a39d47a9cd3
children 65e23b7a4398
comparison
equal deleted inserted replaced
21865:886fa5f83f91 21866:03c950701fac
1134 static void paste_clipboard_cb(GtkIMHtml *imhtml, gpointer blah) 1134 static void paste_clipboard_cb(GtkIMHtml *imhtml, gpointer blah)
1135 { 1135 {
1136 #ifdef _WIN32 1136 #ifdef _WIN32
1137 /* If we're on windows, let's see if we can get data from the HTML Format 1137 /* If we're on windows, let's see if we can get data from the HTML Format
1138 clipboard before we try to paste from the GTK buffer */ 1138 clipboard before we try to paste from the GTK buffer */
1139 if (!clipboard_paste_html_win32(imhtml)) { 1139 if (!clipboard_paste_html_win32(imhtml))
1140 #endif 1140 #endif
1141 {
1141 GtkClipboard *clipboard = gtk_widget_get_clipboard(GTK_WIDGET(imhtml), GDK_SELECTION_CLIPBOARD); 1142 GtkClipboard *clipboard = gtk_widget_get_clipboard(GTK_WIDGET(imhtml), GDK_SELECTION_CLIPBOARD);
1142 gtk_clipboard_request_contents(clipboard, gdk_atom_intern("text/html", FALSE), 1143 gtk_clipboard_request_contents(clipboard, gdk_atom_intern("text/html", FALSE),
1143 paste_received_cb, imhtml); 1144 paste_received_cb, imhtml);
1144 #ifdef _WIN32 1145 }
1145 }
1146 #endif
1147 g_signal_stop_emission_by_name(imhtml, "paste-clipboard"); 1146 g_signal_stop_emission_by_name(imhtml, "paste-clipboard");
1148 } 1147 }
1149 1148
1150 static void imhtml_realized_remove_primary(GtkIMHtml *imhtml, gpointer unused) 1149 static void imhtml_realized_remove_primary(GtkIMHtml *imhtml, gpointer unused)
1151 { 1150 {
3481 g_free(dirname); 3480 g_free(dirname);
3482 g_free(filename); 3481 g_free(filename);
3483 return; 3482 return;
3484 } 3483 }
3485 #endif /* FILECHOOSER */ 3484 #endif /* FILECHOOSER */
3485 #if 0 /* mismatched curly braces */
3486 }
3487 #endif
3486 3488
3487 /* 3489 /*
3488 * XXX - We should probably prompt the user to determine if they really 3490 * XXX - We should probably prompt the user to determine if they really
3489 * want to overwrite the file or not. However, I don't feel like doing 3491 * want to overwrite the file or not. However, I don't feel like doing
3490 * that, so we're just always going to overwrite if the file exists. 3492 * that, so we're just always going to overwrite if the file exists.