Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gtk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,125
Issues
1,125
List
Boards
Labels
Service Desk
Milestones
Merge Requests
150
Merge Requests
150
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
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
GNOME
gtk
Commits
3d5d3e8e
Commit
3d5d3e8e
authored
Jun 30, 2013
by
William Jon McCann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a couple of deprecation warnings related to stock items
parent
c6ca2374
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
27 deletions
+29
-27
perf/treeview.c
perf/treeview.c
+27
-27
tests/testgtk.c
tests/testgtk.c
+2
-0
No files found.
perf/treeview.c
View file @
3d5d3e8e
...
@@ -8,32 +8,32 @@ struct row_data {
...
@@ -8,32 +8,32 @@ struct row_data {
};
};
static
const
struct
row_data
row_data
[]
=
{
static
const
struct
row_data
row_data
[]
=
{
{
GTK_STOCK_NEW
,
"First"
,
"Here bygynneth the Book of the tales of Caunterbury."
},
{
"document-new"
,
"First"
,
"Here bygynneth the Book of the tales of Caunterbury."
},
{
GTK_STOCK_OPEN
,
"Second"
,
"Whan that Aprille, with hise shoures soote,"
},
{
"document-open"
,
"Second"
,
"Whan that Aprille, with hise shoures soote,"
},
{
GTK_STOCK_ABOUT
,
"Third"
,
"The droghte of March hath perced to the roote"
},
{
"help-about"
,
"Third"
,
"The droghte of March hath perced to the roote"
},
{
GTK_STOCK_ADD
,
"Fourth"
,
"And bathed every veyne in swich licour,"
},
{
"list-add"
,
"Fourth"
,
"And bathed every veyne in swich licour,"
},
{
GTK_STOCK_APPLY
,
"Fifth"
,
"Of which vertu engendred is the flour;"
},
{
"go-top"
,
"Fifth"
,
"Of which vertu engendred is the flour;"
},
{
GTK_STOCK_BOLD
,
"Sixth"
,
"Whan Zephirus eek with his swete breeth"
},
{
"format-text-bold"
,
"Sixth"
,
"Whan Zephirus eek with his swete breeth"
},
{
GTK_STOCK_CANCEL
,
"Seventh"
,
"Inspired hath in every holt and heeth"
},
{
"go-first"
,
"Seventh"
,
"Inspired hath in every holt and heeth"
},
{
GTK_STOCK_CDROM
,
"Eighth"
,
"The tendre croppes, and the yonge sonne"
},
{
"media-optical"
,
"Eighth"
,
"The tendre croppes, and the yonge sonne"
},
{
GTK_STOCK_CLEAR
,
"Ninth"
,
"Hath in the Ram his halfe cours yronne,"
},
{
"edit-clear"
,
"Ninth"
,
"Hath in the Ram his halfe cours yronne,"
},
{
GTK_STOCK_CLOSE
,
"Tenth"
,
"And smale foweles maken melodye,"
},
{
"window-close"
,
"Tenth"
,
"And smale foweles maken melodye,"
},
{
GTK_STOCK_COLOR_PICKER
,
"Eleventh"
,
"That slepen al the nyght with open eye-"
},
{
"go-last"
,
"Eleventh"
,
"That slepen al the nyght with open eye-"
},
{
GTK_STOCK_CONVERT
,
"Twelfth"
,
"So priketh hem Nature in hir corages-"
},
{
"go-previous"
,
"Twelfth"
,
"So priketh hem Nature in hir corages-"
},
{
GTK_STOCK_CONNECT
,
"Thirteenth"
,
"Thanne longen folk to goon on pilgrimages"
},
{
"go-down"
,
"Thirteenth"
,
"Thanne longen folk to goon on pilgrimages"
},
{
GTK_STOCK_COPY
,
"Fourteenth"
,
"And palmeres for to seken straunge strondes"
},
{
"edit-copy"
,
"Fourteenth"
,
"And palmeres for to seken straunge strondes"
},
{
GTK_STOCK_CUT
,
"Fifteenth"
,
"To ferne halwes, kowthe in sondry londes;"
},
{
"edit-cut"
,
"Fifteenth"
,
"To ferne halwes, kowthe in sondry londes;"
},
{
GTK_STOCK_DELETE
,
"Sixteenth"
,
"And specially, from every shires ende"
},
{
"edit-delete"
,
"Sixteenth"
,
"And specially, from every shires ende"
},
{
GTK_STOCK_DIRECTORY
,
"Seventeenth"
,
"Of Engelond, to Caunturbury they wende,"
},
{
"folder"
,
"Seventeenth"
,
"Of Engelond, to Caunturbury they wende,"
},
{
GTK_STOCK_DISCONNECT
,
"Eighteenth"
,
"The hooly blisful martir for the seke"
},
{
"go-next"
,
"Eighteenth"
,
"The hooly blisful martir for the seke"
},
{
GTK_STOCK_EDIT
,
"Nineteenth"
,
"That hem hath holpen, whan that they were seeke."
},
{
"go-up"
,
"Nineteenth"
,
"That hem hath holpen, whan that they were seeke."
},
{
GTK_STOCK_EXECUTE
,
"Twentieth"
,
"Bifil that in that seson, on a day,"
},
{
"system-run"
,
"Twentieth"
,
"Bifil that in that seson, on a day,"
},
{
GTK_STOCK_FILE
,
"Twenty-first"
,
"In Southwerk at the Tabard as I lay,"
},
{
"text-x-generic"
,
"Twenty-first"
,
"In Southwerk at the Tabard as I lay,"
},
{
GTK_STOCK_FIND
,
"Twenty-second"
,
"Redy to wenden on my pilgrymage"
},
{
"edit-find"
,
"Twenty-second"
,
"Redy to wenden on my pilgrymage"
},
{
GTK_STOCK_FIND_AND_REPLACE
,
"Twenty-third"
,
"To Caunterbury, with ful devout corage,"
},
{
"edit-find-replace"
,
"Twenty-third"
,
"To Caunterbury, with ful devout corage,"
},
{
GTK_STOCK_FLOPPY
,
"Twenty-fourth"
,
"At nyght were come into that hostelrye"
},
{
"media-floppy"
,
"Twenty-fourth"
,
"At nyght were come into that hostelrye"
},
{
GTK_STOCK_FULLSCREEN
,
"Twenty-fifth"
,
"Wel nyne and twenty in a compaignye"
},
{
"view-fullscreen"
,
"Twenty-fifth"
,
"Wel nyne and twenty in a compaignye"
},
{
GTK_STOCK_GOTO_BOTTOM
,
"Twenty-sixth"
,
"Of sondry folk, by aventure yfalle"
},
{
"go-bottom"
,
"Twenty-sixth"
,
"Of sondry folk, by aventure yfalle"
},
};
};
static
GtkTreeModel
*
static
GtkTreeModel
*
...
@@ -79,7 +79,7 @@ tree_view_new (void)
...
@@ -79,7 +79,7 @@ tree_view_new (void)
column
=
gtk_tree_view_column_new_with_attributes
(
"Icon"
,
column
=
gtk_tree_view_column_new_with_attributes
(
"Icon"
,
gtk_cell_renderer_pixbuf_new
(),
gtk_cell_renderer_pixbuf_new
(),
"
stock-id
"
,
0
,
"
icon-name
"
,
0
,
NULL
);
NULL
);
gtk_tree_view_append_column
(
GTK_TREE_VIEW
(
tree
),
column
);
gtk_tree_view_append_column
(
GTK_TREE_VIEW
(
tree
),
column
);
...
...
tests/testgtk.c
View file @
3d5d3e8e
...
@@ -1216,6 +1216,7 @@ set_toolbar_disable (GtkWidget *widget,
...
@@ -1216,6 +1216,7 @@ set_toolbar_disable (GtkWidget *widget,
g_object_set
(
settings
,
"gtk-enable-tooltips"
,
FALSE
,
NULL
);
g_object_set
(
settings
,
"gtk-enable-tooltips"
,
FALSE
,
NULL
);
}
}
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
;
static
GtkActionEntry
create_toolbar_items
[]
=
{
static
GtkActionEntry
create_toolbar_items
[]
=
{
{
NULL
,
GTK_STOCK_NEW
,
NULL
,
NULL
,
"Stock icon: New"
,
{
NULL
,
GTK_STOCK_NEW
,
NULL
,
NULL
,
"Stock icon: New"
,
G_CALLBACK
(
set_toolbar_small_stock
)
},
G_CALLBACK
(
set_toolbar_small_stock
)
},
...
@@ -1254,6 +1255,7 @@ static GtkActionEntry create_toolbar_items[] = {
...
@@ -1254,6 +1255,7 @@ static GtkActionEntry create_toolbar_items[] = {
{
NULL
,
NULL
,
"Bar"
,
NULL
,
"Bar tooltip"
,
{
NULL
,
NULL
,
"Bar"
,
NULL
,
"Bar tooltip"
,
NULL
},
NULL
},
};
};
G_GNUC_END_IGNORE_DEPRECATIONS
;
static
void
static
void
create_toolbar
(
GtkWidget
*
widget
)
create_toolbar
(
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