[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: Mon, 31 Jan 2011 18:48:45 +0000 (UTC)
commit efce4a2192e6194c1da66482b086ce0046c8a789
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Mon Jan 31 19:30:18 2011 +0100
noop: code cleanup
src/gnome-cmd-file.cc | 1 +
src/gnome-cmd-notebook.cc | 3 +--
src/gnome-cmd-notebook.h | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index 36dd5a5..128ef46 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -36,6 +36,7 @@
using namespace std;
+
#define MAX_TYPE_LENGTH 2
#define MAX_NAME_LENGTH 128
#define MAX_OWNER_LENGTH 128
diff --git a/src/gnome-cmd-notebook.cc b/src/gnome-cmd-notebook.cc
index 1bdaa43..01d5364 100644
--- a/src/gnome-cmd-notebook.cc
+++ b/src/gnome-cmd-notebook.cc
@@ -67,8 +67,7 @@ static void gnome_cmd_notebook_finalize (GObject *object)
delete self->priv;
- if (G_OBJECT_CLASS (gnome_cmd_notebook_parent_class)->finalize)
- (* G_OBJECT_CLASS (gnome_cmd_notebook_parent_class)->finalize) (object);
+ G_OBJECT_CLASS (gnome_cmd_notebook_parent_class)->finalize (object);
}
diff --git a/src/gnome-cmd-notebook.h b/src/gnome-cmd-notebook.h
index 97adc02..296fad1 100644
--- a/src/gnome-cmd-notebook.h
+++ b/src/gnome-cmd-notebook.h
@@ -49,14 +49,14 @@ struct GnomeCmdNotebook
operator GtkContainer * () const { return GTK_CONTAINER (this); }
operator GtkNotebook * () const { return GTK_NOTEBOOK (this); }
- int size() const { return gtk_notebook_get_n_pages (*this); }
- bool empty() const { return size()==0; }
+ int size() const { return gtk_notebook_get_n_pages (*this); }
+ bool empty() const { return size()==0; }
gint get_current_page() const { return gtk_notebook_get_current_page (*this); }
void set_current_page(gint n) { gtk_notebook_set_current_page (*this, n); }
GtkWidget *page() const { return gtk_notebook_get_nth_page (*this, get_current_page()); }
- GtkWidget *page(gint n) const { return gtk_notebook_get_nth_page (*this, n); }
+ GtkWidget *page(gint n) const { return gtk_notebook_get_nth_page (*this, n); }
gint insert_page(GtkWidget *page, gint n, GtkWidget *label=NULL);
gint insert_page(GtkWidget *page, gint n, const gchar *label) { return insert_page(page, n, label ? gtk_label_new (label) : NULL); }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]