gnome-commander r2228 - branches/gcmd-1-3/src/intviewer
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r2228 - branches/gcmd-1-3/src/intviewer
- Date: Tue, 21 Oct 2008 20:37:11 +0000 (UTC)
Author: epiotr
Date: Tue Oct 21 20:37:11 2008
New Revision: 2228
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2228&view=rev
Log:
Code cleanup
Modified:
branches/gcmd-1-3/src/intviewer/image-render.cc
Modified: branches/gcmd-1-3/src/intviewer/image-render.cc
==============================================================================
--- branches/gcmd-1-3/src/intviewer/image-render.cc (original)
+++ branches/gcmd-1-3/src/intviewer/image-render.cc Tue Oct 21 20:37:11 2008
@@ -43,7 +43,7 @@
using namespace std;
-static GtkWidget *parent_class = NULL;
+static GtkWidgetClass *parent_class = NULL;
enum {
IMAGE_STATUS_CHANGED,
@@ -206,10 +206,10 @@
static void image_render_class_init (ImageRenderClass *klass)
{
- GtkObjectClass *object_class = GTK_OBJECT_CLASS(klass);
- GtkWidgetClass *widget_class = GTK_WIDGET_CLASS(klass);
+ GtkObjectClass *object_class = GTK_OBJECT_CLASS (klass);
+ GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
- parent_class = (GtkWidget *) gtk_type_class (gtk_widget_get_type ());
+ parent_class = (GtkWidgetClass *) gtk_type_class (gtk_widget_get_type ());
object_class->destroy = image_render_destroy;
@@ -344,12 +344,11 @@
g_return_if_fail (widget != NULL);
g_return_if_fail (IS_IMAGE_RENDER (widget));
- GdkWindowAttr attributes;
- gint attributes_mask;
-
GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED);
ImageRender *obj = IMAGE_RENDER (widget);
+ GdkWindowAttr attributes;
+
attributes.x = widget->allocation.x;
attributes.y = widget->allocation.y;
attributes.width = widget->allocation.width;
@@ -363,7 +362,7 @@
attributes.visual = gtk_widget_get_visual (widget);
attributes.colormap = gtk_widget_get_colormap (widget);
- attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
+ gint attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
widget->window = gdk_window_new (widget->parent->window, &attributes, attributes_mask);
widget->style = gtk_style_attach (widget->style, widget->window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]