[gnome-commander] noop: code cleanup
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] noop: code cleanup
- Date: Thu, 3 Jun 2010 19:03:23 +0000 (UTC)
commit c39f0231f9f347c849329f81b7e446c6b4034210
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Thu Jun 3 21:02:48 2010 +0200
noop: code cleanup
src/gnome-cmd-main-win.cc | 4 +++-
src/gnome-cmd-regex.h | 1 -
src/main.cc | 2 +-
src/utils.h | 1 +
4 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-cmd-main-win.cc b/src/gnome-cmd-main-win.cc
index 062b58a..44383e2 100644
--- a/src/gnome-cmd-main-win.cc
+++ b/src/gnome-cmd-main-win.cc
@@ -478,6 +478,7 @@ static gboolean on_slide_button_press (GtkWidget *widget, GdkEventButton *event,
return FALSE;
}
+
static void on_main_win_realize (GtkWidget *widget, GnomeCmdMainWin *mw)
{
mw->set_equal_panes();
@@ -753,6 +754,7 @@ static void class_init (GnomeCmdMainWinClass *klass)
klass->switch_fs = gnome_cmd_main_win_real_switch_fs;
}
+
static void init (GnomeCmdMainWin *mw)
{
/* It is very important that this global variable gets assigned here so that
@@ -1296,7 +1298,7 @@ GnomeCmdState *GnomeCmdMainWin::get_state()
}
-void GnomeCmdMainWin::set_cap_state (gboolean state)
+void GnomeCmdMainWin::set_cap_state(gboolean state)
{
gtk_widget_set_sensitive (priv->tb_cap_paste_btn, state);
}
diff --git a/src/gnome-cmd-regex.h b/src/gnome-cmd-regex.h
index 1051276..4e3e3ef 100644
--- a/src/gnome-cmd-regex.h
+++ b/src/gnome-cmd-regex.h
@@ -108,7 +108,6 @@ namespace GnomeCmd
gchar *replace(const std::string &s) { return replace(s.c_str()); }
};
-
inline ReplacePattern::ReplacePattern(const gchar *from, const gchar *to, gboolean case_sensitive): FindPattern(from,case_sensitive)
{
if (to) replacement = to;
diff --git a/src/main.cc b/src/main.cc
index 9ae3487..e140ec4 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -18,7 +18,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-extern "C"
+extern "C"
{
void gnome_authentication_manager_init ();
}
diff --git a/src/utils.h b/src/utils.h
index a383b16..9618b8b 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -56,6 +56,7 @@ inline void run_command (const gchar *command)
}
const char **convert_varargs_to_name_array (va_list args);
+
gint run_simple_dialog (GtkWidget *parent, gboolean ignore_close_box,
GtkMessageType msg_type,
const char *text, const char *title, gint def_response, ...);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]