Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 290947 Details for
Bug 427750
entry sorting - patch attached
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
the sort patch
sort-list.patch (text/plain), 1.32 KB, created by
Assen Tchorbadjiev
on 2008-01-07 12:55:51 UTC
(
hide
)
Description:
the sort patch
Filename:
MIME Type:
Creator:
Assen Tchorbadjiev
Created:
2008-01-07 12:55:51 UTC
Size:
1.32 KB
patch
obsolete
>--- tsclient-0.150/applet/applet.c.orig 2008-01-07 14:28:42.000000000 +0200 >+++ tsclient-0.150/applet/applet.c 2008-01-07 14:29:09.000000000 +0200 >@@ -204,6 +204,13 @@ > } > } > >+// util start >+/* Used as the sort function for sorting the entries put into the list */ >+static gint strcmpex(gconstpointer a, gconstpointer b) >+{ >+ return strcmp((char*)a, (char*)b); >+} >+// util end > > gboolean applet_popup_show (GtkWidget *widget, > GdkEvent *event, >@@ -212,6 +219,7 @@ > GtkMenu *menu = NULL; > GtkMenuItem *mi = NULL; > GHashTable* hash=NULL; >+ GList *keys = NULL; > > g_return_val_if_fail (widget != NULL, FALSE) ; > g_return_val_if_fail (event != NULL, FALSE) ; >@@ -225,7 +233,16 @@ > hash = rdp_files_to_hash (); > menu = GTK_MENU (gtk_menu_new ()); > >- g_hash_table_foreach (hash, create_menu, menu); >+ /* attempt to sort the entries */ >+ keys = g_hash_table_get_keys(hash); >+ g_list_sort(keys, strcmpex); >+ gchar *tmp,*val; >+ for ( keys=g_list_first(keys); (keys != NULL); keys = g_list_next (keys)) { >+ tmp =(gchar*)keys->data; >+ val = (gchar*)g_hash_table_lookup(hash,tmp); >+ create_menu((gpointer)tmp,(gpointer)val,menu); >+ } >+ g_list_free(keys); > > mi = (GtkMenuItem *) gtk_separator_menu_item_new (); > gtk_menu_shell_append ((GtkMenuShell *) menu, GTK_WIDGET (mi));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 427750
: 290947 |
290948
|
290949