Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
a30a47fa
Commit
a30a47fa
authored
Feb 06, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapted to older gtk version
parent
fe661063
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
18 deletions
+32
-18
wb/exe/wb/gtk/wb_gtk.cpp
wb/exe/wb/gtk/wb_gtk.cpp
+3
-1
xtt/lib/flow/gtk/flow_browwidget_gtk.cpp
xtt/lib/flow/gtk/flow_browwidget_gtk.cpp
+3
-3
xtt/lib/flow/gtk/flow_widget_gtk.cpp
xtt/lib/flow/gtk/flow_widget_gtk.cpp
+3
-3
xtt/lib/glow/gtk/glow_colpalwidget_gtk.cpp
xtt/lib/glow/gtk/glow_colpalwidget_gtk.cpp
+3
-3
xtt/lib/glow/gtk/glow_curvewidget_gtk.cpp
xtt/lib/glow/gtk/glow_curvewidget_gtk.cpp
+3
-3
xtt/lib/glow/gtk/glow_draw_gtk.cpp
xtt/lib/glow/gtk/glow_draw_gtk.cpp
+14
-2
xtt/lib/glow/gtk/glow_growwidget_gtk.cpp
xtt/lib/glow/gtk/glow_growwidget_gtk.cpp
+3
-3
No files found.
wb/exe/wb/gtk/wb_gtk.cpp
View file @
a30a47fa
/*
* Proview $Id: wb_gtk.cpp,v 1.
1 2007-01-04 07:29:02
claes Exp $
* Proview $Id: wb_gtk.cpp,v 1.
2 2007-02-06 15:14:08
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -297,7 +297,9 @@ WbGtk::WbGtk( int argc, char *argv[])
strcat
(
title
,
login_prv
.
username
);
strcat
(
title
,
" on "
);
strcat
(
title
,
systemname
);
#if !(GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION < 8)
gtk_window_set_icon_name
(
GTK_WINDOW
(
toplevel
),
title
);
#endif
gtk_widget_show_all
(
toplevel
);
g_object_set
(
toplevel
,
"visible"
,
FALSE
,
NULL
);
...
...
xtt/lib/flow/gtk/flow_browwidget_gtk.cpp
View file @
a30a47fa
/*
* Proview $Id: flow_browwidget_gtk.cpp,v 1.
3 2007-02-01 07:10:33
claes Exp $
* Proview $Id: flow_browwidget_gtk.cpp,v 1.
4 2007-02-06 15:13:34
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -341,8 +341,8 @@ GtkWidget *scrolledbrowwidgetgtk_new(
w
->
brow_ctx
=
0
;
w
->
is_navigator
=
0
;
w
->
client_data
=
client_data
;
w
->
scroll_h
=
gtk_scrolled_window_get_hscrollbar
(
GTK_SCROLLED_WINDOW
(
form
))
;
w
->
scroll_v
=
gtk_scrolled_window_get_vscrollbar
(
GTK_SCROLLED_WINDOW
(
form
))
;
w
->
scroll_h
=
GTK_SCROLLED_WINDOW
(
form
)
->
hscrollbar
;
w
->
scroll_v
=
GTK_SCROLLED_WINDOW
(
form
)
->
vscrollbar
;
w
->
scroll_h_ignore
=
0
;
w
->
scroll_v_ignore
=
0
;
w
->
scroll_h_value
=
0
;
...
...
xtt/lib/flow/gtk/flow_widget_gtk.cpp
View file @
a30a47fa
/*
* Proview $Id: flow_widget_gtk.cpp,v 1.
3 2007-02-01 07:10:33
claes Exp $
* Proview $Id: flow_widget_gtk.cpp,v 1.
4 2007-02-06 15:13:34
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -330,8 +330,8 @@ GtkWidget *scrolledflowwidgetgtk_new(
w
->
flow_ctx
=
0
;
w
->
is_navigator
=
0
;
w
->
client_data
=
client_data
;
w
->
scroll_h
=
gtk_scrolled_window_get_hscrollbar
(
GTK_SCROLLED_WINDOW
(
form
))
;
w
->
scroll_v
=
gtk_scrolled_window_get_vscrollbar
(
GTK_SCROLLED_WINDOW
(
form
))
;
w
->
scroll_h
=
GTK_SCROLLED_WINDOW
(
form
)
->
hscrollbar
;
w
->
scroll_v
=
GTK_SCROLLED_WINDOW
(
form
)
->
vscrollbar
;
w
->
scroll_h_ignore
=
0
;
w
->
scroll_v_ignore
=
0
;
w
->
form
=
form
;
...
...
xtt/lib/glow/gtk/glow_colpalwidget_gtk.cpp
View file @
a30a47fa
/*
* Proview $Id: glow_colpalwidget_gtk.cpp,v 1.
1 2007-01-04 08:07:43
claes Exp $
* Proview $Id: glow_colpalwidget_gtk.cpp,v 1.
2 2007-02-06 15:13:34
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -325,8 +325,8 @@ GtkWidget *scrolledcolpalwidgetgtk_new(
w
->
colpal_ctx
=
0
;
w
->
is_navigator
=
0
;
w
->
client_data
=
client_data
;
w
->
scroll_h
=
gtk_scrolled_window_get_hscrollbar
(
GTK_SCROLLED_WINDOW
(
form
))
;
w
->
scroll_v
=
gtk_scrolled_window_get_vscrollbar
(
GTK_SCROLLED_WINDOW
(
form
))
;
w
->
scroll_h
=
GTK_SCROLLED_WINDOW
(
form
)
->
hscrollbar
;
w
->
scroll_v
=
GTK_SCROLLED_WINDOW
(
form
)
->
vscrollbar
;
w
->
scroll_h_ignore
=
0
;
w
->
scroll_v_ignore
=
0
;
w
->
form
=
form
;
...
...
xtt/lib/glow/gtk/glow_curvewidget_gtk.cpp
View file @
a30a47fa
/*
* Proview $Id: glow_curvewidget_gtk.cpp,v 1.
2 2007-01-15 13:19:09
claes Exp $
* Proview $Id: glow_curvewidget_gtk.cpp,v 1.
3 2007-02-06 15:13:34
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -353,8 +353,8 @@ GtkWidget *scrolledcurvewidgetgtk_new(
w
->
curve_ctx
=
0
;
w
->
is_navigator
=
0
;
w
->
client_data
=
client_data
;
w
->
scroll_h
=
gtk_scrolled_window_get_hscrollbar
(
GTK_SCROLLED_WINDOW
(
form
))
;
w
->
scroll_v
=
gtk_scrolled_window_get_vscrollbar
(
GTK_SCROLLED_WINDOW
(
form
))
;
w
->
scroll_h
=
GTK_SCROLLED_WINDOW
(
form
)
->
hscrollbar
;
w
->
scroll_v
=
GTK_SCROLLED_WINDOW
(
form
)
->
vscrollbar
;
w
->
scroll_h_ignore
=
0
;
w
->
scroll_v_ignore
=
0
;
w
->
form
=
form
;
...
...
xtt/lib/glow/gtk/glow_draw_gtk.cpp
View file @
a30a47fa
/*
* Proview $Id: glow_draw_gtk.cpp,v 1.
3 2007-01-15 13:19:09
claes Exp $
* Proview $Id: glow_draw_gtk.cpp,v 1.
4 2007-02-06 15:13:34
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -2382,7 +2382,7 @@ int GlowDrawGtk::print( char *filename, double x0, double x1, int end)
if
(
new_file
)
{
ps
->
fp
<<
"%!PS-Adobe-2.0 EPSF-1.2"
<<
endl
<<
"%%Creator: Proview $Id: glow_draw_gtk.cpp,v 1.
3 2007-01-15 13:19:09
claes Exp $ Glow"
<<
endl
<<
"%%Creator: Proview $Id: glow_draw_gtk.cpp,v 1.
4 2007-02-06 15:13:34
claes Exp $ Glow"
<<
endl
<<
"%%EndComments"
<<
endl
<<
endl
;
}
else
...
...
@@ -2524,6 +2524,9 @@ unsigned char *GlowDrawGtk::image_get_data( glow_tImImage image)
void
GlowDrawGtk
::
image_rotate
(
glow_tImImage
*
image
,
int
to_rotation
,
int
from_rotation
)
{
#if GDK_PIXBUF_MAJOR == 2 && GDK_PIXBUF_MINOR < 8
return
;
#else
int
grot
;
int
drot
=
to_rotation
-
from_rotation
;
drot
=
int
(
(
float
(
drot
)
/
360
-
floor
(
float
(
drot
)
/
360
))
*
360
);
...
...
@@ -2543,20 +2546,29 @@ void GlowDrawGtk::image_rotate( glow_tImImage *image, int to_rotation, int from_
GdkPixbuf
*
im
=
gdk_pixbuf_rotate_simple
(
(
GdkPixbuf
*
)
*
image
,
(
GdkPixbufRotation
)
grot
);
gdk_pixbuf_unref
(
(
GdkPixbuf
*
)
*
image
);
*
image
=
(
glow_tImImage
)
im
;
#endif
}
void
GlowDrawGtk
::
image_flip_vertical
(
glow_tImImage
*
image
)
{
#if GDK_PIXBUF_MAJOR == 2 && GDK_PIXBUF_MINOR < 8
return
;
#else
GdkPixbuf
*
im
=
gdk_pixbuf_flip
(
(
GdkPixbuf
*
)
*
image
,
TRUE
);
gdk_pixbuf_unref
(
(
GdkPixbuf
*
)
*
image
);
*
image
=
(
glow_tImImage
)
im
;
#endif
}
void
GlowDrawGtk
::
image_flip_horizontal
(
glow_tImImage
*
image
)
{
#if GDK_PIXBUF_MAJOR == 2 && GDK_PIXBUF_MINOR < 8
return
;
#else
GdkPixbuf
*
im
=
gdk_pixbuf_flip
(
(
GdkPixbuf
*
)
*
image
,
FALSE
);
gdk_pixbuf_unref
(
(
GdkPixbuf
*
)
*
image
);
*
image
=
(
glow_tImImage
)
im
;
#endif
}
void
GlowDrawGtk
::
image_scale
(
int
width
,
int
height
,
glow_tImImage
orig_im
,
glow_tImImage
*
im
,
...
...
xtt/lib/glow/gtk/glow_growwidget_gtk.cpp
View file @
a30a47fa
/*
* Proview $Id: glow_growwidget_gtk.cpp,v 1.
3 2007-02-01 07:10:33
claes Exp $
* Proview $Id: glow_growwidget_gtk.cpp,v 1.
4 2007-02-06 15:13:34
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -355,8 +355,8 @@ GtkWidget *scrolledgrowwidgetgtk_new(
w
->
grow_ctx
=
0
;
w
->
is_navigator
=
0
;
w
->
client_data
=
client_data
;
w
->
scroll_h
=
gtk_scrolled_window_get_hscrollbar
(
GTK_SCROLLED_WINDOW
(
form
))
;
w
->
scroll_v
=
gtk_scrolled_window_get_vscrollbar
(
GTK_SCROLLED_WINDOW
(
form
))
;
w
->
scroll_h
=
GTK_SCROLLED_WINDOW
(
form
)
->
hscrollbar
;
w
->
scroll_v
=
GTK_SCROLLED_WINDOW
(
form
)
->
vscrollbar
;
w
->
scroll_h_ignore
=
0
;
w
->
scroll_v_ignore
=
0
;
w
->
form
=
form
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment