Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eta
gajim
Commits
bded2aeb
Commit
bded2aeb
authored
21 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
clear button in message window
parent
6321e050
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plugins/gtkgui/gtkgui.glade
+1
-1
1 addition, 1 deletion
plugins/gtkgui/gtkgui.glade
plugins/gtkgui/gtkgui.py
+5
-0
5 additions, 0 deletions
plugins/gtkgui/gtkgui.py
with
6 additions
and
1 deletion
plugins/gtkgui/gtkgui.glade
+
1
−
1
View file @
bded2aeb
...
...
@@ -2,7 +2,6 @@
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
<glade-interface>
<requires
lib=
"gnome"
/>
<widget
class=
"GtkWindow"
id=
"Gajim"
>
<property
name=
"visible"
>
True
</property>
...
...
@@ -429,6 +428,7 @@
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"relief"
>
GTK_RELIEF_NORMAL
</property>
<signal
name=
"clicked"
handler=
"on_clear_button_clicked"
last_modification_time=
"Thu, 01 Jan 2004 06:12:56 GMT"
/>
<child>
<widget
class=
"GtkAlignment"
id=
"alignment5"
>
...
...
This diff is collapsed.
Click to expand it.
plugins/gtkgui/gtkgui.py
+
5
−
0
View file @
bded2aeb
...
...
@@ -557,6 +557,10 @@ class message:
return
1
return
0
def
on_clear
(
self
,
widget
):
deb
,
end
=
self
.
convTxtBuffer
.
get_bounds
()
self
.
convTxtBuffer
.
delete
(
deb
,
end
)
def
__init__
(
self
,
user
,
roster
):
self
.
user
=
user
self
.
r
=
roster
...
...
@@ -576,6 +580,7 @@ class message:
self
.
convTxtBuffer
.
create_mark
(
'
end
'
,
end_iter
,
0
)
# self.window.show()
self
.
xml
.
signal_connect
(
'
gtk_widget_destroy
'
,
self
.
delete_event
)
self
.
xml
.
signal_connect
(
'
on_clear_button_clicked
'
,
self
.
on_clear
)
self
.
xml
.
signal_connect
(
'
on_msg_key_press_event
'
,
self
.
on_msg_key_press_event
)
self
.
tagIn
=
self
.
convTxtBuffer
.
create_tag
(
"
incoming
"
)
color
=
self
.
cfgParser
.
GtkGui_inmsgcolor
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment