Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
ristretto
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Avinash Sonawane
ristretto
Commits
173a23b4
Commit
173a23b4
authored
Sep 03, 2009
by
Stephan Arts
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ChangeLog
Add sort_on_exif_date skeleton-code Fix typo in accelerator for rotate-left
parent
99225225
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
83 additions
and
24 deletions
+83
-24
ChangeLog
ChangeLog
+35
-0
src/image_list.c
src/image_list.c
+47
-23
src/main_window.c
src/main_window.c
+1
-1
No files found.
ChangeLog
View file @
173a23b4
2009-09-03 Stephan Arts <stephan@xfce.org>
* src/main_window.c: Fix typo in default accelerator of Rotate-Left
* src/image_list.c: Add skeleton-code for sorting on exif-date
2009-09-01 Stephan Arts <stephan@xfce.org>
* src/main_window.c: Store navigationbar position in xfconf
2009-09-01 Stephan Arts <stephan@xfce.org>
* src/main_window.c: Improve fullscreen behaviour
2009-08-30 Stephan Arts <stephan@xfce.org>
* src/main_window.c: Add popup to change the location of the navigationbar
and thumbnailbar
2009-08-30 Stephan Arts <stephan@xfce.org>
* src/main_window.c: Place navigation-bar and thumbnailbar next to eachother.
2009-08-30 Stephan Arts <stephan@xfce.org>
* src/main_window.c: Improve UI-sensitivity, do not make navigation-buttons and
slideshow buttons sensitive when only one image is opened.
2009-08-30 Stephan Arts <stephan@xfce.org>
* src/main_window.c: Toggle visibility of Thumbnailbar.
2009-08-30 Stephan Arts <stephan@xfce.org>
* src/main_window.c: Fix errors when the ristretto icon is not available
2009-08-12 Stephan Arts <stephan@xfce.org>
* ChangeLog: Merge with private branch
...
...
src/image_list.c
View file @
173a23b4
...
...
@@ -46,6 +46,8 @@ static RsttoImageListIter * rstto_image_list_iter_new ();
static
gint
cb_rstto_image_list_image_name_compare_func
(
RsttoImage
*
a
,
RsttoImage
*
b
);
static
gint
cb_rstto_image_list_exif_date_compare_func
(
RsttoImage
*
a
,
RsttoImage
*
b
);
static
GObjectClass
*
parent_class
=
NULL
;
static
GObjectClass
*
iter_parent_class
=
NULL
;
...
...
@@ -76,6 +78,7 @@ struct _RsttoImageListPriv
gint
n_images
;
GSList
*
iterators
;
GCompareFunc
cb_rstto_image_list_compare_func
;
};
static
gint
rstto_image_list_signals
[
RSTTO_IMAGE_LIST_SIGNAL_COUNT
];
...
...
@@ -111,6 +114,7 @@ static void
rstto_image_list_init
(
RsttoImageList
*
image_list
)
{
image_list
->
priv
=
g_new0
(
RsttoImageListPriv
,
1
);
image_list
->
priv
->
cb_rstto_image_list_compare_func
=
(
GCompareFunc
)
cb_rstto_image_list_image_name_compare_func
;
}
static
void
...
...
@@ -180,7 +184,7 @@ rstto_image_list_add_file (RsttoImageList *image_list, GFile *file, GError **err
RsttoImage
*
image
=
rstto_image_new
(
file
);
if
(
image
)
{
image_list
->
priv
->
images
=
g_list_insert_sorted
(
image_list
->
priv
->
images
,
image
,
(
GCompareFunc
)
cb_rstto_image_list_image_name_compare_func
);
image_list
->
priv
->
images
=
g_list_insert_sorted
(
image_list
->
priv
->
images
,
image
,
rstto_image_list_get_compare_func
(
image_list
)
);
image_list
->
priv
->
n_images
++
;
g_signal_emit
(
G_OBJECT
(
image_list
),
rstto_image_list_signals
[
RSTTO_IMAGE_LIST_SIGNAL_NEW_IMAGE
],
0
,
image
,
NULL
);
...
...
@@ -270,27 +274,6 @@ rstto_image_list_remove_all (RsttoImageList *image_list)
}
/**
* cb_rstto_image_list_image_name_compare_func:
* @a:
* @b:
*
*
* Return value: (see strcmp)
*/
static
gint
cb_rstto_image_list_image_name_compare_func
(
RsttoImage
*
a
,
RsttoImage
*
b
)
{
gchar
*
a_base
=
g_file_get_basename
(
rstto_image_get_file
(
a
));
gchar
*
b_base
=
g_file_get_basename
(
rstto_image_get_file
(
b
));
gint
result
=
0
;
result
=
g_strcasecmp
(
a_base
,
b_base
);
g_free
(
a_base
);
g_free
(
b_base
);
return
result
;
}
GType
rstto_image_list_iter_get_type
(
void
)
...
...
@@ -485,5 +468,46 @@ rstto_image_list_iter_clone (RsttoImageListIter *iter)
GCompareFunc
rstto_image_list_get_compare_func
(
RsttoImageList
*
image_list
)
{
return
(
GCompareFunc
)
cb_rstto_image_list_image_name_compare_func
;
return
(
GCompareFunc
)
image_list
->
priv
->
cb_rstto_image_list_compare_func
;
}
/***********************/
/* Compare Functions */
/***********************/
/**
* cb_rstto_image_list_image_name_compare_func:
* @a:
* @b:
*
*
* Return value: (see strcmp)
*/
static
gint
cb_rstto_image_list_image_name_compare_func
(
RsttoImage
*
a
,
RsttoImage
*
b
)
{
gchar
*
a_base
=
g_file_get_basename
(
rstto_image_get_file
(
a
));
gchar
*
b_base
=
g_file_get_basename
(
rstto_image_get_file
(
b
));
gint
result
=
0
;
result
=
g_strcasecmp
(
a_base
,
b_base
);
g_free
(
a_base
);
g_free
(
b_base
);
return
result
;
}
/**
* cb_rstto_image_list_exif_date_compare_func:
* @a:
* @b:
*
*
* Return value: (see strcmp)
*/
static
gint
cb_rstto_image_list_exif_date_compare_func
(
RsttoImage
*
a
,
RsttoImage
*
b
)
{
gint
result
=
0
;
return
result
;
}
src/main_window.c
View file @
173a23b4
...
...
@@ -285,7 +285,7 @@ static GtkActionEntry action_entries[] =
/* Rotation submenu */
{
"rotation-menu"
,
NULL
,
N_
(
"_Rotation"
),
NULL
,
},
{
"rotate-cw"
,
"object-rotate-right"
,
N_
(
"Rotate _Right"
),
"<control>bracketright"
,
NULL
,
G_CALLBACK
(
cb_rstto_main_window_rotate_cw
),
},
{
"rotate-ccw"
,
"object-rotate-left"
,
N_
(
"Rotate _Left"
),
"<contro
n
>bracketleft"
,
NULL
,
G_CALLBACK
(
cb_rstto_main_window_rotate_ccw
),
},
{
"rotate-ccw"
,
"object-rotate-left"
,
N_
(
"Rotate _Left"
),
"<contro
l
>bracketleft"
,
NULL
,
G_CALLBACK
(
cb_rstto_main_window_rotate_ccw
),
},
/* Go Menu */
{
"go-menu"
,
NULL
,
N_
(
"_Go"
),
NULL
,
},
{
"forward"
,
GTK_STOCK_GO_FORWARD
,
N_
(
"_Forward"
),
"space"
,
NULL
,
G_CALLBACK
(
cb_rstto_main_window_next_image
),
},
...
...
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