[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: Tue, 15 Feb 2011 20:15:13 +0000 (UTC)
commit 427d50f958eb7c29f6837e71838ad3f1333a8ff0
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Tue Feb 15 21:13:17 2011 +0100
noop: code cleanup
src/gnome-cmd-clist.cc | 11 ++---------
src/gnome-cmd-clist.h | 7 +------
2 files changed, 3 insertions(+), 15 deletions(-)
---
diff --git a/src/gnome-cmd-clist.cc b/src/gnome-cmd-clist.cc
index 68a3e2c..2dab48a 100644
--- a/src/gnome-cmd-clist.cc
+++ b/src/gnome-cmd-clist.cc
@@ -31,11 +31,6 @@ using namespace std;
static GtkCListClass *parent_class = NULL;
-struct GnomeCmdCListPrivate
-{
-};
-
-
/*******************************************
* TEST TEST TEST
****/
@@ -263,8 +258,7 @@ static void draw_row (GtkCList *clist, GdkRectangle *area, gint row, GtkCListRow
if (area)
{
rect = &intersect_rectangle;
- if (gdk_rectangle_intersect (area, &cell_rectangle,
- &intersect_rectangle))
+ if (gdk_rectangle_intersect (area, &cell_rectangle, &intersect_rectangle))
gdk_draw_rectangle (clist->clist_window,
widget->style->base_gc[GTK_STATE_NORMAL],
TRUE,
@@ -350,8 +344,7 @@ static void draw_row (GtkCList *clist, GdkRectangle *area, gint row, GtkCListRow
if (area && !gdk_rectangle_intersect (area, &clip_rectangle, &intersect_rectangle))
continue;
- gdk_draw_rectangle (clist->clist_window, bg_gc, TRUE,
- rect->x, rect->y, rect->width, rect->height);
+ gdk_draw_rectangle (clist->clist_window, bg_gc, TRUE, rect->x, rect->y, rect->width, rect->height);
clip_rectangle.x += COLUMN_INSET + CELL_SPACING;
clip_rectangle.width -= (2 * COLUMN_INSET + CELL_SPACING + (i == last_column) * CELL_SPACING);
diff --git a/src/gnome-cmd-clist.h b/src/gnome-cmd-clist.h
index 8f428be..5c5485b 100644
--- a/src/gnome-cmd-clist.h
+++ b/src/gnome-cmd-clist.h
@@ -28,16 +28,11 @@
#define GNOME_CMD_CLIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNOME_CMD_TYPE_CLIST, GnomeCmdCListClass))
-struct GnomeCmdCListPrivate;
-
-
struct GnomeCmdCList
{
GtkCList parent;
gint drag_motion_row;
-
- GnomeCmdCListPrivate *priv;
};
@@ -57,7 +52,7 @@ inline GtkWidget *gnome_cmd_clist_new (gint columns)
return gnome_cmd_clist_new_with_titles (columns, NULL);
}
-void gnome_cmd_clist_update_style (GnomeCmdCList *clist);
+void gnome_cmd_clist_update_style (GnomeCmdCList *clist);
gint gnome_cmd_clist_get_voffset (GnomeCmdCList *clist);
void gnome_cmd_clist_set_voffset (GnomeCmdCList *clist, gint voffset);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]