"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libsn/sn-xutils.c" between
xfe-1.42.tar.gz and xfe-1.43.tar.gz

About: Xfe (X File Explorer) is a file manager and browser (using the FOX toolkit).

sn-xutils.c  (xfe-1.42):sn-xutils.c  (xfe-1.43)
skipping to change at line 27 skipping to change at line 27
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE. * SOFTWARE.
*/ */
#include <config.h> #include <config.h>
#include "sn-internals.h" #include "sn-internals.h"
#include <X11/Xutil.h>
#include <X11/Xatom.h>
Atom #include <xcb/xcb.h>
sn_internal_atom_get (SnDisplay *display,
const char *atom_name)
{
switch (sn_internal_display_get_type (display))
{
case SN_DISPLAY_TYPE_XLIB:
return XInternAtom (sn_display_get_x_display (display),
atom_name,
False);
}
return None;
}
void void
sn_internal_set_utf8_string (SnDisplay *display, sn_internal_set_utf8_string (SnDisplay *display,
Window xwindow, xcb_window_t xwindow,
const char *property, xcb_atom_t property,
const char *str) const char *str)
{ {
sn_display_error_trap_push (display); sn_display_error_trap_push (display);
xcb_connection_t *c = sn_display_get_x_connection (display);
xcb_atom_t UTF8_STRING = sn_internal_get_utf8_string_atom(display);
switch (sn_internal_display_get_type (display)) xcb_change_property (c,
{ XCB_PROP_MODE_REPLACE,
case SN_DISPLAY_TYPE_XLIB: xwindow,
XChangeProperty (sn_display_get_x_display (display), property,
xwindow, UTF8_STRING,
sn_internal_atom_get (display, property), 8, strlen (str), str);
sn_internal_atom_get (display, "UTF8_STRING"),
8, PropModeReplace, (unsigned char*) str,
strlen (str));
break;
}
sn_display_error_trap_pop (display); sn_display_error_trap_pop (display);
} }
 End of changes. 6 change blocks. 
30 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)