[gnome-commander] search: small cleanup in statusbar
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] search: small cleanup in statusbar
- Date: Fri, 13 May 2011 17:53:38 +0000 (UTC)
commit c5be606e4fbf4da29a7f10a255520515800513f2
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Fri May 13 19:47:09 2011 +0200
search: small cleanup in statusbar
src/gnome-cmd-search-dialog.cc | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-cmd-search-dialog.cc b/src/gnome-cmd-search-dialog.cc
index ca7809f..5912591 100755
--- a/src/gnome-cmd-search-dialog.cc
+++ b/src/gnome-cmd-search-dialog.cc
@@ -123,10 +123,9 @@ struct GnomeCmdSearchDialogPrivate
* Puts a string in the statusbar.
*
*/
-inline void set_statusmsg (SearchData *data, gchar *msg)
+inline void set_statusmsg (SearchData *data, const gchar *msg=NULL)
{
- if (msg)
- gtk_statusbar_push (GTK_STATUSBAR (data->dialog->priv->statusbar), data->context_id, msg);
+ gtk_statusbar_push (GTK_STATUSBAR (data->dialog->priv->statusbar), data->context_id, msg ? msg : "");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]