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
thunar
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
281
Issues
281
List
Boards
Labels
Service Desk
Milestones
Custom Issue Tracker
Custom Issue Tracker
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xfce
thunar
Commits
9a4900b7
Commit
9a4900b7
authored
Dec 15, 2009
by
Nick Schermer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused function thunar_gtk_icon_factory_insert_icon().
parent
3072fb53
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
42 deletions
+0
-42
thunar/thunar-gtk-extensions.c
thunar/thunar-gtk-extensions.c
+0
-38
thunar/thunar-gtk-extensions.h
thunar/thunar-gtk-extensions.h
+0
-4
No files found.
thunar/thunar-gtk-extensions.c
View file @
9a4900b7
...
...
@@ -93,44 +93,6 @@ thunar_gtk_action_group_set_action_sensitive (GtkActionGroup *action_group,
/**
* thunar_gtk_icon_factory_insert_icon:
* @icon_factory : a #GtkIconFactory.
* @stock_id : the stock id of the icon to be inserted.
* @icon_name : the name of the themed icon or an absolute
* path to an icon file.
*
* Inserts an entry into the @icon_factory, with the specified
* @stock_id, for the given @icon_name, which can be either an
* icon name (of a themed icon) or an absolute path to an icon
* file.
**/
void
thunar_gtk_icon_factory_insert_icon
(
GtkIconFactory
*
icon_factory
,
const
gchar
*
stock_id
,
const
gchar
*
icon_name
)
{
GtkIconSource
*
icon_source
;
GtkIconSet
*
icon_set
;
_thunar_return_if_fail
(
GTK_IS_ICON_FACTORY
(
icon_factory
));
_thunar_return_if_fail
(
icon_name
!=
NULL
);
_thunar_return_if_fail
(
stock_id
!=
NULL
);
icon_set
=
gtk_icon_set_new
();
icon_source
=
gtk_icon_source_new
();
if
(
G_UNLIKELY
(
g_path_is_absolute
(
icon_name
)))
gtk_icon_source_set_filename
(
icon_source
,
icon_name
);
else
gtk_icon_source_set_icon_name
(
icon_source
,
icon_name
);
gtk_icon_set_add_source
(
icon_set
,
icon_source
);
gtk_icon_factory_add
(
icon_factory
,
stock_id
,
icon_set
);
gtk_icon_source_free
(
icon_source
);
gtk_icon_set_unref
(
icon_set
);
}
/**
* thunar_gtk_label_set_a11y_relation:
* @label : a #GtkLabel.
...
...
thunar/thunar-gtk-extensions.h
View file @
9a4900b7
...
...
@@ -32,10 +32,6 @@ void thunar_gtk_action_group_set_action_sensitive (GtkActionGroup *a
const
gchar
*
action_name
,
gboolean
sensitive
);
void
thunar_gtk_icon_factory_insert_icon
(
GtkIconFactory
*
icon_factory
,
const
gchar
*
stock_id
,
const
gchar
*
icon_name
);
void
thunar_gtk_label_set_a11y_relation
(
GtkLabel
*
label
,
GtkWidget
*
widget
);
...
...
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